Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008307/0.0008306, allocations: 91.88 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009317/0.0009317, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.000285, allocations: 4 kB / 301.5 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 50.41 MB / 352 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2352/0.3413, allocations: 20.57 MB / 372.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.3553, allocations: 6.272 MB / 378.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004826/0.3601, allocations: 129.4 kB / 378.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004828/0.365, allocations: 1.267 MB / 380.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008718/0.3737, allocations: 1.864 MB / 382.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003876/0.3776, allocations: 1.15 MB / 383.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01222/0.3899, allocations: 7.088 MB / 390.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008248/0.3981, allocations: 4.623 MB / 394.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00455/0.4027, allocations: 2.164 MB / 397.1 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005598/0.4083, allocations: 2.927 MB / 400 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001635/0.41, allocations: 339.7 kB / 400.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003767/0.4137, allocations: 0.6312 MB / 401 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002389/0.4161, allocations: 1.446 MB / 402.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006034/0.4222, allocations: 2.924 MB / 405.3 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.4357, allocations: 10.09 MB / 415.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.4357, allocations: 0 / 415.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4357, allocations: 3.938 kB / 415.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003938/0.4361, allocations: 0 / 415.4 MB, free: 2.695 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01915/0.4553, allocations: 5.817 MB / 421.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.555e-05/0.4554, allocations: 8.031 kB / 421.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003364/0.4587, allocations: 0.7359 MB / 422 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006818/0.4656, allocations: 1.062 MB / 423.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009335/0.4749, allocations: 3.614 MB / 426.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005801/0.4755, allocations: 428.2 kB / 427.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002005/0.4776, allocations: 0.5182 MB / 427.6 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01933/0.4969, allocations: 7.077 MB / 434.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002965/0.4973, allocations: 7.906 kB / 434.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/0.4988, allocations: 219.1 kB / 434.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003511/0.4991, allocations: 262.6 kB / 435.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01605/0.5152, allocations: 5.983 MB / 441.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04775/0.563, allocations: 22.55 MB / 463.7 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009788/0.5728, allocations: 8.313 MB / 472 MB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004227/0.5771, allocations: 2.209 MB / 474.2 MB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0148/0.592, allocations: 6.194 MB / 480.4 MB, free: 320 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.823e-05/0.592, allocations: 64.55 kB / 480.5 MB, free: 248 kB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 1.939e-05/0.5921, allocations: 0 / 480.5 MB, free: 248 kB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02513/0.6172, allocations: 11.22 MB / 491.7 MB, free: 4.797 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.153e-05/0.6173, allocations: 77.41 kB / 491.8 MB, free: 4.707 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007347/0.6247, allocations: 3.152 MB / 494.9 MB, free: 1.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004011/0.6251, allocations: 65.7 kB / 495 MB, free: 1.484 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002086/0.6272, allocations: 2.497 MB / 497.5 MB, free: 14.97 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001062/0.6283, allocations: 0.8318 MB / 498.3 MB, free: 14.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005877/0.6289, allocations: 248.4 kB / 498.6 MB, free: 13.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.629, allocations: 305.1 kB / 498.9 MB, free: 13.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002749/0.6318, allocations: 1.349 MB / 0.4885 GB, free: 12.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003477/0.6353, allocations: 2.358 MB / 0.4908 GB, free: 9.438 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006474/0.6418, allocations: 3.955 MB / 0.4946 GB, free: 5.008 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.759e-05/0.6418, allocations: 8 kB / 0.4947 GB, free: 5 MB / 414.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.01009/0.6519, allocations: 4.733 MB / 0.4993 GB, free: 160 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.794e-05/0.652, allocations: 16 kB / 0.4993 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.102e-05/0.6521, allocations: 32 kB / 0.4993 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.6534, allocations: 0.5296 MB / 0.4998 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002765/0.6562, allocations: 0.7488 MB / 0.5006 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009238/0.6654, allocations: 9.442 MB / 0.5098 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002881/0.6683, allocations: 191.7 kB / 0.51 GB, free: 4.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003182/0.6686, allocations: 140 kB / 0.5101 GB, free: 4.383 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003686/0.6723, allocations: 1.579 MB / 0.5117 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009636/0.6733, allocations: 343.8 kB / 0.512 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008007/0.6813, allocations: 4.092 MB / 0.516 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/0.6814, allocations: 24 kB / 0.516 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.984e-05/0.6814, allocations: 8 kB / 0.516 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.598e-05/0.6814, allocations: 15.89 kB / 0.516 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01738/0.6988, allocations: 9.004 MB / 0.5248 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.6989, allocations: 4.594 kB / 0.5248 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/0.7007, allocations: 419.4 kB / 0.5252 GB, free: 4.648 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/0.7027, allocations: 0.7391 MB / 0.5259 GB, free: 3.887 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002032/0.7029, allocations: 67.97 kB / 0.526 GB, free: 3.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1969/0.8998, allocations: 15.34 MB / 0.541 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.8998, allocations: 8.688 kB / 0.541 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009578/0.9094, allocations: 5.883 MB / 0.5467 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/0.9113, allocations: 0.7025 MB / 0.5474 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000453/0.9117, allocations: 59.47 kB / 0.5475 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/0.9134, allocations: 157.4 kB / 0.5476 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006874/0.9141, allocations: 184.9 kB / 0.5478 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000187/0.9143, allocations: 72.73 kB / 0.5479 GB, free: 129.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004046/0.9183, allocations: 2.126 MB / 0.55 GB, free: 128.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.9183, allocations: 0 / 0.55 GB, free: 128.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004245/0.9226, allocations: 0.9979 MB / 0.5509 GB, free: 128.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009916/0.9325, allocations: 6.598 MB / 0.5574 GB, free: 125.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006532/0.9391, allocations: 4.153 MB / 0.5614 GB, free: 123.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/0.9391, allocations: 0.9688 kB / 0.5614 GB, free: 123.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004297/0.9434, allocations: 2.76 MB / 0.5641 GB, free: 121.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007614/0.9511, allocations: 0.905 MB / 0.565 GB, free: 121.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08305/1.034, allocations: 45.56 MB / 0.6095 GB, free: 77.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005572/1.04, allocations: 3.415 MB / 0.6128 GB, free: 74.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004653/1.045, allocations: 0.8112 MB / 0.6136 GB, free: 73.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003652/1.048, allocations: 2.1 MB / 0.6157 GB, free: 71.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/1.048, allocations: 0 / 0.6157 GB, free: 71.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1395/1.188, allocations: 86.07 MB / 0.6997 GB, free: 1.93 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002547/1.188, allocations: 268.2 kB / 0.7 GB, free: 1.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.61/5.798, allocations: 3.234 kB / 0.7 GB, free: 1.57 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches