Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00149/0.00149, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0023/0.002299, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 67.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2901, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02173/0.3119, allocations: 20.92 MB / 429.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.3233, allocations: 6.18 MB / 435.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003793/0.3271, allocations: 139.4 kB / 436 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003912/0.331, allocations: 1.366 MB / 437.4 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005824/0.3369, allocations: 1.891 MB / 439.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003271/0.3402, allocations: 1.281 MB / 440.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007557/0.3478, allocations: 6.157 MB / 446.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007774/0.3556, allocations: 5.442 MB / 452.1 MB, free: 5.914 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004303/0.3599, allocations: 2.874 MB / 455 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005677/0.3656, allocations: 3.499 MB / 458.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002123/0.3677, allocations: 0.7812 MB / 459.3 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003326/0.3711, allocations: 1.089 MB / 460.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002776/0.3739, allocations: 1.94 MB / 462.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005294/0.3792, allocations: 3.361 MB / 465.7 MB, free: 8.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.3908, allocations: 10.36 MB / 476 MB, free: 13.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3909, allocations: 0 / 476 MB, free: 13.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3909, allocations: 8 kB / 476.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002806/0.3912, allocations: 0 / 476.1 MB, free: 13.93 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01706/0.4082, allocations: 6.623 MB / 482.7 MB, free: 7.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4083, allocations: 8.031 kB / 482.7 MB, free: 7.223 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001074/0.4094, allocations: 0.7 MB / 483.4 MB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004495/0.4139, allocations: 1.017 MB / 484.4 MB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00688/0.4208, allocations: 3.591 MB / 488 MB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002796/0.4211, allocations: 382.6 kB / 488.4 MB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00099/0.4221, allocations: 0.5076 MB / 488.9 MB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/0.4334, allocations: 6.775 MB / 495.6 MB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001079/0.4335, allocations: 15.91 kB / 495.7 MB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004497/0.434, allocations: 208 kB / 495.9 MB, free: 9.875 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002036/0.4342, allocations: 246.2 kB / 496.1 MB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009364/0.4436, allocations: 5.755 MB / 0.4901 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03267/0.4763, allocations: 20.92 MB / 0.5105 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008175/0.4845, allocations: 8.817 MB / 0.5191 GB, free: 4.613 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003372/0.4879, allocations: 2.194 MB / 0.5213 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01074/0.4986, allocations: 6.191 MB / 0.5273 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/0.4987, allocations: 56.56 kB / 0.5274 GB, free: 11.96 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 3.878e-06/0.4987, allocations: 4 kB / 0.5274 GB, free: 11.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.01969/0.5184, allocations: 10.42 MB / 0.5376 GB, free: 1.281 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.5185, allocations: 81.34 kB / 0.5376 GB, free: 1.191 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2218/0.7403, allocations: 2.917 MB / 0.5405 GB, free: 120.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005019/0.7409, allocations: 61.73 kB / 0.5405 GB, free: 120.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/0.7426, allocations: 2.373 MB / 0.5429 GB, free: 119.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007288/0.7434, allocations: 0.7648 MB / 0.5436 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008219/0.7442, allocations: 0.519 MB / 0.5441 GB, free: 118.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.391e-05/0.7443, allocations: 305.4 kB / 0.5444 GB, free: 118.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001736/0.746, allocations: 1.269 MB / 0.5456 GB, free: 117.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002118/0.7481, allocations: 2.17 MB / 0.5478 GB, free: 116.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003908/0.7521, allocations: 3.67 MB / 0.5513 GB, free: 114 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.7521, allocations: 7.812 kB / 0.5514 GB, free: 114 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006286/0.7584, allocations: 4.461 MB / 0.5557 GB, free: 112.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.7584, allocations: 23.56 kB / 0.5557 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/0.7585, allocations: 27.03 kB / 0.5558 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.7595, allocations: 0.5437 MB / 0.5563 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/0.7617, allocations: 0.6795 MB / 0.557 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006686/0.7684, allocations: 10.34 MB / 0.5671 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.7706, allocations: 181 kB / 0.5672 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/0.7707, allocations: 123.2 kB / 0.5673 GB, free: 102.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * 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,11,100.0%), (1,6,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.001997/0.7727, allocations: 1.53 MB / 0.5688 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003812/0.7731, allocations: 319.9 kB / 0.5691 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005086/0.7782, allocations: 3.901 MB / 0.5729 GB, free: 97.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.7782, allocations: 20 kB / 0.573 GB, free: 97.68 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.7783, allocations: 8 kB / 0.573 GB, free: 97.68 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.7783, allocations: 15.95 kB / 0.573 GB, free: 97.66 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.789, allocations: 8.503 MB / 0.5813 GB, free: 89.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.789, allocations: 4 kB / 0.5813 GB, free: 89.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.7905, allocations: 382 kB / 0.5817 GB, free: 88.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001627/0.7921, allocations: 0.7415 MB / 0.5824 GB, free: 87.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.7923, allocations: 59.97 kB / 0.5824 GB, free: 87.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.8031, allocations: 16.76 MB / 0.5988 GB, free: 70 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.8031, allocations: 10.12 kB / 0.5988 GB, free: 69.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007196/0.8103, allocations: 5.58 MB / 0.6043 GB, free: 64.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001614/0.812, allocations: 0.6416 MB / 0.6049 GB, free: 63.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.8124, allocations: 64.11 kB / 0.605 GB, free: 63.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.8139, allocations: 131.9 kB / 0.6051 GB, free: 63.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00036/0.8143, allocations: 165.6 kB / 0.6052 GB, free: 63.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.8144, allocations: 67.98 kB / 0.6053 GB, free: 63.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002394/0.8168, allocations: 1.98 MB / 0.6072 GB, free: 61.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8168, allocations: 0 / 0.6072 GB, free: 61.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002845/0.8197, allocations: 0.94 MB / 0.6082 GB, free: 60.27 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (182): * Single equations (assignments): 174 * 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,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007182/0.8269, allocations: 6.284 MB / 0.6143 GB, free: 53.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005104/0.832, allocations: 3.983 MB / 0.6182 GB, free: 49.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.832, allocations: 4 kB / 0.6182 GB, free: 49.77 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003305/0.8353, allocations: 2.669 MB / 0.6208 GB, free: 47.01 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00378/0.8391, allocations: 0.8582 MB / 0.6216 GB, free: 46.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04127/0.8804, allocations: 33.32 MB / 0.6542 GB, free: 11.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002137/0.8826, allocations: 3.299 MB / 0.6574 GB, free: 8.254 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001852/0.8845, allocations: 0.758 MB / 0.6581 GB, free: 7.492 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00176/0.8862, allocations: 1.948 MB / 0.66 GB, free: 5.543 MB / 462.1 MB Notification: Performance of SimCode: time 1.011e-06/0.8862, allocations: 3.938 kB / 0.66 GB, free: 5.539 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1433/1.03, allocations: 82.87 MB / 0.741 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/17.14, allocations: 19.94 kB / 0.741 GB, free: 3.301 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches