Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001074/0.001074, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.001302/0.001302, allocations: 191.9 kB / 18.51 MB, free: 4.512 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.395/1.395, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001345/0.001345, allocations: 51.94 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1075, allocations: 46.62 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02415/0.1317, allocations: 21.67 MB / 349.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01277/0.1445, allocations: 6.442 MB / 355.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00327/0.1479, allocations: 119.5 kB / 355.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004221/0.1521, allocations: 1.475 MB / 357.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006343/0.1585, allocations: 2.054 MB / 359.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.1623, allocations: 1.31 MB / 360.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007975/0.1703, allocations: 6.489 MB / 366.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008337/0.1786, allocations: 5.523 MB / 372.5 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004309/0.183, allocations: 2.975 MB / 375.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005166/0.1881, allocations: 3.553 MB / 379 MB, free: 496 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1599/0.348, allocations: 0.8135 MB / 379.8 MB, free: 21.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004019/0.3521, allocations: 1.109 MB / 380.9 MB, free: 21.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002915/0.355, allocations: 2.024 MB / 382.9 MB, free: 21.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007811/0.3628, allocations: 3.535 MB / 386.5 MB, free: 20.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01472/0.3776, allocations: 10.69 MB / 397.2 MB, free: 19.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3776, allocations: 0 / 397.2 MB, free: 19.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3776, allocations: 0 / 397.2 MB, free: 19.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003554/0.378, allocations: 0 / 397.2 MB, free: 19.41 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.02149/0.3995, allocations: 6.92 MB / 404.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3996, allocations: 9.438 kB / 404.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002595/0.4022, allocations: 0.7332 MB / 404.8 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006599/0.4088, allocations: 1.065 MB / 405.9 MB, free: 14.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008263/0.4171, allocations: 3.478 MB / 409.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006395/0.4177, allocations: 421.8 kB / 409.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002086/0.4198, allocations: 0.5244 MB / 410.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01652/0.4364, allocations: 7.047 MB / 417.3 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002377/0.4367, allocations: 11.72 kB / 417.4 MB, free: 7.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.438, allocations: 216.6 kB / 417.6 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002285/0.4383, allocations: 263.4 kB / 417.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.4495, allocations: 5.937 MB / 423.8 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04232/0.4919, allocations: 22.44 MB / 446.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009298/0.5012, allocations: 8.281 MB / 454.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004082/0.5053, allocations: 2.184 MB / 456.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01289/0.5182, allocations: 6.178 MB / 462.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.584e-05/0.5184, allocations: 60.5 kB / 462.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 5.972e-06/0.5184, allocations: 0 / 462.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.02516/0.5435, allocations: 11.16 MB / 474.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.5436, allocations: 73.41 kB / 474.1 MB, free: 14.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006151/0.5498, allocations: 3.152 MB / 477.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003186/0.5501, allocations: 65.7 kB / 477.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00188/0.552, allocations: 2.502 MB / 479.9 MB, free: 9.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008452/0.5529, allocations: 0.8239 MB / 480.7 MB, free: 8.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.5541, allocations: 0.5614 MB / 481.2 MB, free: 7.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.5542, allocations: 307.9 kB / 481.5 MB, free: 7.469 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002293/0.5565, allocations: 1.33 MB / 482.9 MB, free: 6.137 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003065/0.5596, allocations: 2.337 MB / 485.2 MB, free: 3.367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005561/0.5651, allocations: 3.923 MB / 489.1 MB, free: 15.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.693e-05/0.5652, allocations: 8 kB / 489.1 MB, free: 15.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008017/0.5732, allocations: 4.709 MB / 493.8 MB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/0.5733, allocations: 20 kB / 493.9 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-05/0.5733, allocations: 36 kB / 493.9 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.5746, allocations: 0.5255 MB / 494.4 MB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.5773, allocations: 0.7462 MB / 495.2 MB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009372/0.5867, allocations: 10.29 MB / 0.4936 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003061/0.5898, allocations: 195.7 kB / 0.4938 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005189/0.5903, allocations: 140 kB / 0.4939 GB, free: 13.95 MB / 414.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.003584/0.5939, allocations: 1.572 MB / 0.4955 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/0.595, allocations: 343.8 kB / 0.4958 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008739/0.6038, allocations: 4.053 MB / 0.4998 GB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.549e-05/0.6038, allocations: 31.92 kB / 0.4998 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.658e-05/0.6039, allocations: 12 kB / 0.4998 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.539e-05/0.6039, allocations: 7.969 kB / 0.4998 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01949/0.6234, allocations: 8.973 MB / 0.5086 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/0.6234, allocations: 4 kB / 0.5086 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/0.6253, allocations: 406.5 kB / 0.509 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.6273, allocations: 0.7461 MB / 0.5097 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/0.6275, allocations: 63.97 kB / 0.5097 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/0.6439, allocations: 16.74 MB / 0.5261 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.514e-05/0.6439, allocations: 10.75 kB / 0.5261 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0109/0.6548, allocations: 5.847 MB / 0.5318 GB, free: 5.863 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002304/0.6572, allocations: 0.696 MB / 0.5325 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/0.6584, allocations: 55.94 kB / 0.5326 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/0.6608, allocations: 135.9 kB / 0.5327 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005079/0.6613, allocations: 183.6 kB / 0.5329 GB, free: 4.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002408/0.6615, allocations: 75.97 kB / 0.5329 GB, free: 4.707 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005213/0.6668, allocations: 2.127 MB / 0.535 GB, free: 2.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6668, allocations: 4 kB / 0.535 GB, free: 2.586 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005539/0.6723, allocations: 0.9923 MB / 0.536 GB, free: 1.594 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.1924/0.8648, allocations: 6.526 MB / 0.5424 GB, free: 155.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01134/0.8761, allocations: 5.727 MB / 0.5479 GB, free: 154.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.8762, allocations: 3.719 kB / 0.5479 GB, free: 154.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003476/0.8797, allocations: 2.749 MB / 0.5506 GB, free: 153.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004312/0.884, allocations: 0.9462 MB / 0.5516 GB, free: 153.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04961/0.9336, allocations: 43.15 MB / 0.5937 GB, free: 116 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002591/0.9363, allocations: 3.408 MB / 0.597 GB, free: 113.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002579/0.9389, allocations: 0.8151 MB / 0.5978 GB, free: 112.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002093/0.941, allocations: 2.1 MB / 0.5999 GB, free: 110.3 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.941, allocations: 0 / 0.5999 GB, free: 110.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1521/1.093, allocations: 89.32 MB / 0.6871 GB, free: 20.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.69, allocations: 20.95 kB / 0.6871 GB, free: 20.72 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches