Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.00174/0.00174, allocations: 113.3 kB / 17.28 MB, free: 6.301 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.001884/0.001884, allocations: 189.3 kB / 18.19 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.65/1.65, allocations: 205.1 MB / 224 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 40.16 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1154, allocations: 46.63 MB / 326.9 MB, free: 4.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02275/0.1382, allocations: 19.96 MB / 346.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.1526, allocations: 5.862 MB / 352.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005847/0.1587, allocations: 107.5 kB / 352.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005565/0.1642, allocations: 1.154 MB / 354 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009298/0.1736, allocations: 1.717 MB / 355.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004478/0.1781, allocations: 1.131 MB / 356.8 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01072/0.1888, allocations: 6.208 MB / 363 MB, free: 396 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008117/0.197, allocations: 5.359 MB / 368.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004964/0.202, allocations: 2.745 MB / 371.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006355/0.2084, allocations: 3.394 MB / 374.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002234/0.2106, allocations: 0.7773 MB / 375.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0034/0.214, allocations: 1.078 MB / 376.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00259/0.2167, allocations: 1.944 MB / 378.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.225/0.4417, allocations: 3.338 MB / 381.7 MB, free: 21.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01819/0.4599, allocations: 10.18 MB / 391.8 MB, free: 21.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.46, allocations: 0 / 391.8 MB, free: 21.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.46, allocations: 1.625 kB / 391.8 MB, free: 21.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003823/0.4604, allocations: 0 / 391.8 MB, free: 21.14 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02649/0.4869, allocations: 6.586 MB / 398.4 MB, free: 18.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.487, allocations: 9.5 kB / 398.4 MB, free: 18.19 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002425/0.4894, allocations: 0.7034 MB / 399.1 MB, free: 17.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.4947, allocations: 1.005 MB / 400.1 MB, free: 17.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007434/0.5022, allocations: 3.272 MB / 403.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002875/0.5025, allocations: 396.4 kB / 403.8 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008867/0.5034, allocations: 0.5097 MB / 404.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.5159, allocations: 6.769 MB / 411.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.5161, allocations: 15.08 kB / 411.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004841/0.5166, allocations: 208.4 kB / 411.3 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002161/0.5168, allocations: 242.5 kB / 411.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.5275, allocations: 5.739 MB / 417.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04523/0.5728, allocations: 21.1 MB / 438.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01011/0.583, allocations: 8.538 MB / 446.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003892/0.5869, allocations: 2.117 MB / 449 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01322/0.6002, allocations: 5.933 MB / 455 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.552e-05/0.6003, allocations: 56.56 kB / 455 MB, free: 1.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 5.821e-06/0.6003, allocations: 0 / 455 MB, free: 1.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02409/0.6244, allocations: 10.27 MB / 465.3 MB, free: 7.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.6245, allocations: 77.41 kB / 465.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006168/0.6307, allocations: 2.908 MB / 468.3 MB, free: 4.402 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000339/0.6311, allocations: 69.7 kB / 468.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001712/0.6328, allocations: 2.344 MB / 470.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008343/0.6336, allocations: 0.7708 MB / 471.5 MB, free: 1.207 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008007/0.6344, allocations: 0.5137 MB / 472 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.886e-05/0.6345, allocations: 305.1 kB / 472.3 MB, free: 392 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002134/0.6367, allocations: 1.268 MB / 473.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002543/0.6392, allocations: 2.179 MB / 475.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004731/0.644, allocations: 3.671 MB / 479.4 MB, free: 8.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.687e-05/0.644, allocations: 8 kB / 479.4 MB, free: 8.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007511/0.6515, allocations: 4.434 MB / 483.8 MB, free: 4.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.995e-05/0.6516, allocations: 23.44 kB / 483.8 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.066e-05/0.6517, allocations: 32.52 kB / 483.9 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.6529, allocations: 0.5176 MB / 484.4 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/0.6556, allocations: 0.6915 MB / 485.1 MB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009191/0.6648, allocations: 10.2 MB / 495.3 MB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003655/0.6685, allocations: 175.8 kB / 495.5 MB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003567/0.6688, allocations: 128 kB / 495.6 MB, free: 7.902 MB / 398.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 (348): * Single equations (assignments): 341 * 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,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.003469/0.6723, allocations: 1.514 MB / 497.1 MB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/0.6735, allocations: 320.1 kB / 497.4 MB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007204/0.6807, allocations: 3.874 MB / 0.4895 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.6807, allocations: 23.94 kB / 0.4896 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-05/0.6808, allocations: 11.94 kB / 0.4896 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.588e-05/0.6808, allocations: 11.95 kB / 0.4896 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01756/0.6984, allocations: 8.488 MB / 0.4979 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/0.6984, allocations: 4 kB / 0.4979 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.7001, allocations: 381.8 kB / 0.4982 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001808/0.7019, allocations: 0.7309 MB / 0.499 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001564/0.7021, allocations: 59.97 kB / 0.499 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/0.7173, allocations: 16.63 MB / 0.5152 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.7174, allocations: 4 kB / 0.5152 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009113/0.7265, allocations: 5.551 MB / 0.5207 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002271/0.7288, allocations: 0.6532 MB / 0.5213 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005794/0.7294, allocations: 51.98 kB / 0.5214 GB, free: 332 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.731, allocations: 135.9 kB / 0.5215 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000521/0.7315, allocations: 171 kB / 0.5217 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/0.7317, allocations: 64.06 kB / 0.5217 GB, free: 15.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00333/0.735, allocations: 1.963 MB / 0.5236 GB, free: 14 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.735, allocations: 0 / 0.5236 GB, free: 14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003931/0.739, allocations: 0.9339 MB / 0.5245 GB, free: 13.07 MB / 446.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 (185): * Single equations (assignments): 177 * 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,3,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.009187/0.7481, allocations: 6.256 MB / 0.5307 GB, free: 6.719 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01104/0.7592, allocations: 5.401 MB / 0.5359 GB, free: 1.332 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.7592, allocations: 8.938 kB / 0.5359 GB, free: 1.324 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2242/0.9835, allocations: 2.645 MB / 0.5385 GB, free: 167.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005413/0.9889, allocations: 0.8491 MB / 0.5393 GB, free: 167.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07291/1.062, allocations: 41.65 MB / 0.58 GB, free: 138.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002771/1.065, allocations: 3.297 MB / 0.5832 GB, free: 135.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002845/1.068, allocations: 0.7539 MB / 0.584 GB, free: 134.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002177/1.07, allocations: 1.94 MB / 0.5859 GB, free: 132.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.593e-06/1.07, allocations: 4 kB / 0.5859 GB, free: 132.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1371/1.207, allocations: 82.56 MB / 0.6665 GB, free: 49.64 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/1.207, allocations: 248.7 kB / 0.6667 GB, free: 49.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.284/5.491, allocations: 0 / 0.6667 GB, free: 49.39 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches