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.001395/0.001395, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001182/0.001182, allocations: 187 kB / 18.66 MB, free: 4.414 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.54/1.54, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001242/0.001242, allocations: 55.92 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.101, allocations: 46.61 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.207/0.308, allocations: 20.23 MB / 394.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01209/0.3202, allocations: 5.936 MB / 400.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003547/0.3238, allocations: 120.2 kB / 401 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003721/0.3276, allocations: 1.343 MB / 402.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00659/0.3342, allocations: 1.904 MB / 404.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003759/0.3379, allocations: 1.249 MB / 405.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00866/0.3466, allocations: 6.111 MB / 411.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006341/0.353, allocations: 5.37 MB / 416.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004657/0.3577, allocations: 2.84 MB / 419.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004768/0.3625, allocations: 3.391 MB / 423.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001099/0.3636, allocations: 0.7852 MB / 423.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002207/0.3658, allocations: 1.062 MB / 425 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00153/0.3673, allocations: 1.94 MB / 426.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003864/0.3712, allocations: 3.353 MB / 430.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009499/0.3808, allocations: 10.3 MB / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3808, allocations: 0 / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3808, allocations: 0 / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001814/0.381, allocations: 0 / 440.6 MB, free: 13.82 MB / 366.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.01313/0.3941, allocations: 6.585 MB / 447.2 MB, free: 7.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.3942, allocations: 12.03 kB / 447.2 MB, free: 7.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008973/0.3951, allocations: 0.7039 MB / 447.9 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004128/0.3992, allocations: 1.005 MB / 448.9 MB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005108/0.4043, allocations: 3.341 MB / 452.2 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002523/0.4046, allocations: 386.8 kB / 452.6 MB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007201/0.4053, allocations: 0.5036 MB / 453.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009851/0.4152, allocations: 6.779 MB / 459.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.256e-05/0.4153, allocations: 7.906 kB / 459.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004378/0.4157, allocations: 212 kB / 460.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001978/0.416, allocations: 242.2 kB / 460.4 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008534/0.4245, allocations: 5.74 MB / 466.1 MB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02767/0.4522, allocations: 20.83 MB / 486.9 MB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007903/0.4601, allocations: 8.547 MB / 495.5 MB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002984/0.4631, allocations: 2.089 MB / 497.6 MB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009536/0.4727, allocations: 5.911 MB / 0.4917 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.4728, allocations: 56.56 kB / 0.4917 GB, free: 13.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 6.573e-06/0.4728, allocations: 0 / 0.4917 GB, free: 13.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.01824/0.491, allocations: 10.28 MB / 0.5018 GB, free: 2.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.4911, allocations: 73.41 kB / 0.5018 GB, free: 2.418 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003798/0.4949, allocations: 2.912 MB / 0.5047 GB, free: 15.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001873/0.4951, allocations: 61.7 kB / 0.5047 GB, free: 15.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.4965, allocations: 2.357 MB / 0.507 GB, free: 13.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005633/0.497, allocations: 0.7664 MB / 0.5078 GB, free: 12.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007405/0.4978, allocations: 0.5177 MB / 0.5083 GB, free: 11.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.4979, allocations: 305.1 kB / 0.5086 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001928/0.4998, allocations: 1.271 MB / 0.5098 GB, free: 10.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002431/0.5023, allocations: 2.175 MB / 0.512 GB, free: 7.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004608/0.5069, allocations: 3.668 MB / 0.5155 GB, free: 3.523 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.109e-05/0.5069, allocations: 8 kB / 0.5155 GB, free: 3.516 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006872/0.5138, allocations: 4.446 MB / 0.5199 GB, free: 15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.5138, allocations: 16 kB / 0.5199 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.911e-05/0.5139, allocations: 32 kB / 0.5199 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.515, allocations: 0.5097 MB / 0.5204 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002349/0.5173, allocations: 0.698 MB / 0.5211 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008791/0.5261, allocations: 10.18 MB / 0.5311 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002649/0.5288, allocations: 175.8 kB / 0.5312 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/0.529, allocations: 132 kB / 0.5314 GB, free: 2.539 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 (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.003173/0.5322, allocations: 1.523 MB / 0.5328 GB, free: 1.004 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006477/0.5329, allocations: 316.1 kB / 0.5331 GB, free: 0.6914 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006065/0.5389, allocations: 3.871 MB / 0.5369 GB, free: 12.72 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.539, allocations: 23.94 kB / 0.5369 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.539, allocations: 11.94 kB / 0.537 GB, free: 12.69 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.071e-05/0.539, allocations: 11.95 kB / 0.537 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.5529, allocations: 8.467 MB / 0.5452 GB, free: 4.016 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.553, allocations: 4.031 kB / 0.5452 GB, free: 4.012 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/0.5546, allocations: 383.4 kB / 0.5456 GB, free: 3.637 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/0.5564, allocations: 0.7289 MB / 0.5463 GB, free: 2.883 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/0.5566, allocations: 59.97 kB / 0.5464 GB, free: 2.824 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2727/0.8293, allocations: 16.59 MB / 0.5626 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.8294, allocations: 13.38 kB / 0.5626 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009509/0.8389, allocations: 5.556 MB / 0.568 GB, free: 133.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/0.8405, allocations: 0.6523 MB / 0.5686 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003988/0.8409, allocations: 54.19 kB / 0.5687 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.8423, allocations: 132.7 kB / 0.5688 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004385/0.8428, allocations: 172 kB / 0.569 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/0.8429, allocations: 70.73 kB / 0.5691 GB, free: 133.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003253/0.8462, allocations: 1.963 MB / 0.571 GB, free: 132.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.8462, allocations: 1.594 kB / 0.571 GB, free: 132.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003913/0.8501, allocations: 0.934 MB / 0.5719 GB, free: 132.6 MB / 478.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.01001/0.8601, allocations: 6.256 MB / 0.578 GB, free: 129.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009484/0.8697, allocations: 3.965 MB / 0.5819 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/0.8697, allocations: 1.344 kB / 0.5819 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006011/0.8757, allocations: 2.652 MB / 0.5845 GB, free: 126.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005884/0.8816, allocations: 0.8498 MB / 0.5853 GB, free: 125.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06045/0.9421, allocations: 33.28 MB / 0.6178 GB, free: 99.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003274/0.9454, allocations: 3.298 MB / 0.621 GB, free: 95.79 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002436/0.9479, allocations: 0.7617 MB / 0.6218 GB, free: 95.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001785/0.9497, allocations: 1.94 MB / 0.6236 GB, free: 93.08 MB / 478.1 MB Notification: Performance of SimCode: time 7.91e-07/0.9497, allocations: 0 / 0.6236 GB, free: 93.08 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1246/1.074, allocations: 82.51 MB / 0.7042 GB, free: 10.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.41/16.49, allocations: 8.766 kB / 0.7042 GB, free: 10.42 MB / 478.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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