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.001415/0.001415, allocations: 112 kB / 16.62 MB, free: 6.812 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.001174/0.001174, allocations: 186 kB / 17.55 MB, free: 5.934 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.328/1.328, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 39.53 kB / 300.3 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1111, allocations: 49.45 MB / 349.7 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.0228/0.134, allocations: 20.02 MB / 369.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2249/0.3589, allocations: 5.795 MB / 375.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004979/0.3639, allocations: 127.3 kB / 375.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004857/0.3688, allocations: 1.168 MB / 376.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007144/0.376, allocations: 1.725 MB / 378.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003904/0.38, allocations: 1.112 MB / 379.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.3904, allocations: 6.193 MB / 385.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007748/0.3982, allocations: 5.439 MB / 391.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004627/0.4029, allocations: 2.761 MB / 394 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00603/0.4089, allocations: 3.402 MB / 397.4 MB, free: 1.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002788/0.4117, allocations: 0.7782 MB / 398.2 MB, free: 1.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004421/0.4162, allocations: 1.071 MB / 399.3 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003329/0.4196, allocations: 1.945 MB / 401.2 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008324/0.4279, allocations: 3.349 MB / 404.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01344/0.4414, allocations: 10.2 MB / 414.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.4415, allocations: 0 / 414.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4415, allocations: 3.938 kB / 414.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002887/0.4418, allocations: 0 / 414.8 MB, free: 1.527 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.01991/0.4617, allocations: 6.576 MB / 421.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.4617, allocations: 11.89 kB / 421.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002257/0.464, allocations: 0.7066 MB / 422.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005787/0.4698, allocations: 1.011 MB / 423.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008232/0.4781, allocations: 3.432 MB / 426.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004599/0.4786, allocations: 398.1 kB / 426.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/0.4802, allocations: 0.5022 MB / 427.4 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01845/0.4987, allocations: 6.777 MB / 434.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001983/0.4989, allocations: 15.89 kB / 434.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001111/0.5001, allocations: 209.5 kB / 434.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002544/0.5003, allocations: 246.2 kB / 434.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.5125, allocations: 5.759 MB / 440.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04005/0.5526, allocations: 21.09 MB / 461.5 MB, free: 2.336 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009231/0.5618, allocations: 8.535 MB / 470 MB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003701/0.5656, allocations: 2.126 MB / 472.2 MB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.5771, allocations: 5.931 MB / 478.1 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.5772, allocations: 52.56 kB / 478.1 MB, free: 0.6641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 4.168e-06/0.5772, allocations: 3.938 kB / 478.1 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.02209/0.5993, allocations: 10.37 MB / 488.5 MB, free: 6.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.5994, allocations: 77.39 kB / 488.6 MB, free: 5.957 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004919/0.6043, allocations: 2.9 MB / 491.5 MB, free: 3.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002865/0.6046, allocations: 61.7 kB / 491.5 MB, free: 2.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001903/0.6065, allocations: 2.359 MB / 493.9 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008069/0.6073, allocations: 0.7631 MB / 494.7 MB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009049/0.6083, allocations: 0.5177 MB / 495.2 MB, free: 15.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.6084, allocations: 305.1 kB / 495.5 MB, free: 15.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/0.6106, allocations: 1.271 MB / 496.8 MB, free: 13.74 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00282/0.6134, allocations: 2.183 MB / 498.9 MB, free: 11.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005233/0.6187, allocations: 3.66 MB / 0.4908 GB, free: 7.102 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.125e-05/0.6187, allocations: 12 kB / 0.4908 GB, free: 7.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008099/0.6268, allocations: 4.446 MB / 0.4952 GB, free: 2.574 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.151e-05/0.6269, allocations: 16 kB / 0.4952 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/0.627, allocations: 28 kB / 0.4952 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.6282, allocations: 0.5177 MB / 0.4957 GB, free: 1.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/0.6307, allocations: 0.6903 MB / 0.4964 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008885/0.6396, allocations: 10.19 MB / 0.5063 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/0.6422, allocations: 171.8 kB / 0.5065 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003669/0.6426, allocations: 124 kB / 0.5066 GB, free: 6.121 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.003454/0.6461, allocations: 1.529 MB / 0.5081 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009265/0.647, allocations: 320.1 kB / 0.5084 GB, free: 4.266 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007338/0.6543, allocations: 3.871 MB / 0.5122 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.6544, allocations: 24 kB / 0.5122 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.883e-05/0.6544, allocations: 12 kB / 0.5122 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/0.6545, allocations: 11.91 kB / 0.5123 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/0.6699, allocations: 8.486 MB / 0.5205 GB, free: 7.617 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/0.67, allocations: 4 kB / 0.5205 GB, free: 7.613 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/0.6716, allocations: 379.9 kB / 0.5209 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/0.6735, allocations: 0.7275 MB / 0.5216 GB, free: 6.492 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/0.6737, allocations: 63.91 kB / 0.5217 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2056/0.8792, allocations: 16.62 MB / 0.5379 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.8793, allocations: 4.344 kB / 0.5379 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008682/0.888, allocations: 5.551 MB / 0.5433 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/0.8896, allocations: 0.6511 MB / 0.544 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004778/0.8901, allocations: 53.11 kB / 0.544 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.8916, allocations: 135.5 kB / 0.5442 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004793/0.8921, allocations: 170.2 kB / 0.5443 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001585/0.8922, allocations: 67.38 kB / 0.5444 GB, free: 132.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003348/0.8956, allocations: 1.963 MB / 0.5463 GB, free: 131.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.893e-06/0.8956, allocations: 0 / 0.5463 GB, free: 131.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003787/0.8994, allocations: 0.936 MB / 0.5472 GB, free: 131.4 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.00936/0.9088, allocations: 6.269 MB / 0.5533 GB, free: 128.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009843/0.9187, allocations: 5.403 MB / 0.5586 GB, free: 126.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.9187, allocations: 1.875 kB / 0.5586 GB, free: 126.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003594/0.9223, allocations: 2.661 MB / 0.5612 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00415/0.9265, allocations: 0.8471 MB / 0.562 GB, free: 124.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07231/0.9988, allocations: 41.61 MB / 0.6027 GB, free: 84.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004483/1.003, allocations: 3.298 MB / 0.6059 GB, free: 81.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003052/1.006, allocations: 0.7539 MB / 0.6066 GB, free: 80.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002965/1.009, allocations: 1.945 MB / 0.6085 GB, free: 78.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/1.009, allocations: 0 / 0.6085 GB, free: 78.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1692/1.179, allocations: 82.53 MB / 0.6891 GB, free: 13.01 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/1.179, allocations: 274.8 kB / 0.6894 GB, free: 12.64 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.271/5.45, allocations: 4.062 kB / 0.6894 GB, free: 12.64 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