Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 107.2 kB / 16.92 MB, free: 5.781 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.001934/0.001935, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.378/1.378, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009803/0.0009804, allocations: 48.3 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1025, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.2221/0.3247, allocations: 20.26 MB / 370.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01633/0.3411, allocations: 5.925 MB / 376.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00504/0.3462, allocations: 132.2 kB / 376.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005023/0.3512, allocations: 1.345 MB / 377.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007553/0.3589, allocations: 1.926 MB / 379.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003714/0.3626, allocations: 1.22 MB / 381 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009235/0.3718, allocations: 6.075 MB / 387.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008212/0.3801, allocations: 5.439 MB / 392.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005583/0.3857, allocations: 2.819 MB / 395.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006649/0.3924, allocations: 3.392 MB / 398.7 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002039/0.3945, allocations: 0.7825 MB / 399.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003913/0.3984, allocations: 1.074 MB / 400.6 MB, free: 40 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002418/0.4008, allocations: 1.94 MB / 402.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0064/0.4072, allocations: 3.356 MB / 405.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.4193, allocations: 10.22 MB / 416.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4194, allocations: 0 / 416.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4194, allocations: 0 / 416.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003213/0.4197, allocations: 0 / 416.1 MB, free: 0.7383 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.02189/0.4416, allocations: 6.59 MB / 422.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.546e-05/0.4417, allocations: 11.89 kB / 422.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003224/0.4449, allocations: 0.6973 MB / 423.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00619/0.4511, allocations: 1.012 MB / 424.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008679/0.4598, allocations: 3.468 MB / 427.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000485/0.4604, allocations: 393.3 kB / 428.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001967/0.4623, allocations: 0.5023 MB / 428.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01892/0.4813, allocations: 6.782 MB / 435.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002545/0.4816, allocations: 15.91 kB / 435.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001515/0.4831, allocations: 211.2 kB / 435.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002626/0.4834, allocations: 238.2 kB / 436 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01433/0.4977, allocations: 5.755 MB / 441.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04553/0.5433, allocations: 21.09 MB / 462.8 MB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009665/0.553, allocations: 8.537 MB / 471.4 MB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003923/0.557, allocations: 2.126 MB / 473.5 MB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/0.5695, allocations: 5.926 MB / 479.4 MB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.887e-05/0.5696, allocations: 56.56 kB / 479.5 MB, free: 15.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=205): time 4.889e-06/0.5697, allocations: 4 kB / 479.5 MB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=222): time 0.02403/0.5937, allocations: 10.38 MB / 489.9 MB, free: 5.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.5938, allocations: 73.41 kB / 489.9 MB, free: 5.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006491/0.6003, allocations: 2.912 MB / 492.8 MB, free: 2.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004827/0.6009, allocations: 61.7 kB / 492.9 MB, free: 2.141 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/0.6028, allocations: 2.352 MB / 495.3 MB, free: 15.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001028/0.6038, allocations: 0.7654 MB / 496 MB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001201/0.6051, allocations: 0.5138 MB / 496.5 MB, free: 14.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.6052, allocations: 301.1 kB / 496.8 MB, free: 14.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003465/0.6087, allocations: 1.275 MB / 498.1 MB, free: 12.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004371/0.6131, allocations: 2.175 MB / 0.4886 GB, free: 10.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006577/0.6197, allocations: 3.676 MB / 0.4921 GB, free: 6.266 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-05/0.6198, allocations: 11.94 kB / 0.4922 GB, free: 6.254 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.009282/0.6291, allocations: 4.442 MB / 0.4965 GB, free: 1.742 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.153e-05/0.6292, allocations: 19.98 kB / 0.4965 GB, free: 1.723 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.949e-05/0.6293, allocations: 28 kB / 0.4965 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.6306, allocations: 0.5215 MB / 0.497 GB, free: 1.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/0.6335, allocations: 0.6825 MB / 0.4977 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00967/0.6432, allocations: 10.18 MB / 0.5077 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003226/0.6464, allocations: 175.8 kB / 0.5078 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006742/0.6471, allocations: 132 kB / 0.5079 GB, free: 5.293 MB / 430.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.003732/0.6509, allocations: 1.52 MB / 0.5094 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001126/0.652, allocations: 316.1 kB / 0.5097 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00799/0.66, allocations: 3.879 MB / 0.5135 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-05/0.6601, allocations: 28 kB / 0.5135 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.642e-05/0.6602, allocations: 12 kB / 0.5136 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.104e-05/0.6602, allocations: 15.89 kB / 0.5136 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01828/0.6785, allocations: 8.48 MB / 0.5219 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.208e-05/0.6786, allocations: 4 kB / 0.5219 GB, free: 6.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/0.6805, allocations: 375.5 kB / 0.5222 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001992/0.6825, allocations: 0.7364 MB / 0.5229 GB, free: 5.668 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003054/0.6829, allocations: 63.97 kB / 0.523 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2542/0.9371, allocations: 16.62 MB / 0.5392 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.9371, allocations: 7.969 kB / 0.5392 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009718/0.9469, allocations: 5.549 MB / 0.5447 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/0.9487, allocations: 0.653 MB / 0.5453 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008906/0.9496, allocations: 56.5 kB / 0.5453 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/0.9517, allocations: 132.7 kB / 0.5455 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004792/0.9522, allocations: 167.1 kB / 0.5456 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001605/0.9523, allocations: 66.83 kB / 0.5457 GB, free: 131.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00389/0.9562, allocations: 1.962 MB / 0.5476 GB, free: 130.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.9562, allocations: 1.188 kB / 0.5476 GB, free: 130.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004298/0.9606, allocations: 0.9325 MB / 0.5485 GB, free: 130.8 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.009632/0.9702, allocations: 6.264 MB / 0.5546 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0101/0.9803, allocations: 5.404 MB / 0.5599 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/0.9804, allocations: 0 / 0.5599 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003863/0.9843, allocations: 2.665 MB / 0.5625 GB, free: 124.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004861/0.9891, allocations: 0.8512 MB / 0.5634 GB, free: 124.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06688/1.056, allocations: 39.55 MB / 0.602 GB, free: 86.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004657/1.061, allocations: 3.298 MB / 0.6052 GB, free: 82.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003392/1.064, allocations: 0.7655 MB / 0.6059 GB, free: 82.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003297/1.068, allocations: 1.94 MB / 0.6078 GB, free: 80.17 MB / 446.1 MB Notification: Performance of SimCode: time 3.667e-06/1.068, allocations: 0 / 0.6078 GB, free: 80.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1727/1.24, allocations: 82.75 MB / 0.6887 GB, free: 14.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/14.4, allocations: 15.33 kB / 0.6887 GB, free: 14.11 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches