Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",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.00161/0.00161, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001736/0.001735, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.537/1.537, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001468/0.001468, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1054, allocations: 46.63 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.2346/0.34, allocations: 13.57 MB / 388.2 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009652/0.3498, allocations: 4.435 MB / 392.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003352/0.3532, allocations: 72.03 kB / 392.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004135/0.3574, allocations: 1.041 MB / 393.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006385/0.3638, allocations: 1.345 MB / 395.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003863/0.3677, allocations: 0.8991 MB / 396 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008389/0.3761, allocations: 4.109 MB / 400.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007679/0.3838, allocations: 3.187 MB / 403.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004747/0.3886, allocations: 1.903 MB / 405.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005038/0.3937, allocations: 2.09 MB / 407.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002021/0.3957, allocations: 0.5122 MB / 407.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003955/0.3997, allocations: 0.7074 MB / 408.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002873/0.4026, allocations: 1.119 MB / 409.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006943/0.4096, allocations: 2.133 MB / 411.8 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.4244, allocations: 6.718 MB / 418.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.384e-05/0.4245, allocations: 5.359 kB / 418.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.377e-06/0.4245, allocations: 0 / 418.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003539/0.4249, allocations: 0 / 418.5 MB, free: 3.715 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.02076/0.4456, allocations: 4.49 MB / 423 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/0.4457, allocations: 12.03 kB / 423 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001854/0.4476, allocations: 459.7 kB / 423.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005719/0.4533, allocations: 0.8339 MB / 424.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006677/0.46, allocations: 2.289 MB / 426.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/0.4604, allocations: 243 kB / 426.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001375/0.4618, allocations: 327.8 kB / 427.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01252/0.4743, allocations: 4.267 MB / 431.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001651/0.4745, allocations: 4 kB / 431.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00115/0.4757, allocations: 136 kB / 431.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001955/0.4759, allocations: 150.4 kB / 431.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009771/0.4857, allocations: 3.597 MB / 435.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03143/0.5172, allocations: 13.73 MB / 449 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008155/0.5254, allocations: 6.575 MB / 455.6 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003059/0.5285, allocations: 1.398 MB / 457 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008345/0.5369, allocations: 3.632 MB / 460.6 MB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.361e-05/0.537, allocations: 51.88 kB / 460.7 MB, free: 8.395 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.396e-06/0.537, allocations: 4 kB / 460.7 MB, free: 8.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01415/0.5512, allocations: 5.919 MB / 466.6 MB, free: 2.262 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.5513, allocations: 76.66 kB / 466.7 MB, free: 2.176 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004456/0.5557, allocations: 1.788 MB / 468.5 MB, free: 396 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002396/0.556, allocations: 49.7 kB / 468.5 MB, free: 340 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/0.5577, allocations: 1.47 MB / 470 MB, free: 14.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007214/0.5584, allocations: 499.7 kB / 470.5 MB, free: 14.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007271/0.5592, allocations: 323.4 kB / 470.8 MB, free: 14.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5593, allocations: 301.1 kB / 471.1 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.5607, allocations: 0.6715 MB / 471.8 MB, free: 13.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.5626, allocations: 1.205 MB / 473 MB, free: 11.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003398/0.5661, allocations: 1.999 MB / 475 MB, free: 9.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.935e-05/0.5661, allocations: 4 kB / 475 MB, free: 9.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.005186/0.5713, allocations: 2.552 MB / 477.5 MB, free: 6.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.5714, allocations: 12 kB / 477.5 MB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.495e-05/0.5715, allocations: 16 kB / 477.5 MB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.5726, allocations: 368.1 kB / 477.9 MB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/0.5742, allocations: 375.4 kB / 478.3 MB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009871/0.5841, allocations: 8.419 MB / 486.7 MB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/0.5863, allocations: 75.92 kB / 486.8 MB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003208/0.5866, allocations: 75.98 kB / 486.8 MB, free: 12.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002472/0.5891, allocations: 1.005 MB / 487.8 MB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007652/0.5899, allocations: 202.7 kB / 488 MB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005011/0.5949, allocations: 2.282 MB / 490.3 MB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.5949, allocations: 16 kB / 490.3 MB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.969e-05/0.595, allocations: 8 kB / 490.3 MB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/0.595, allocations: 7.969 kB / 490.4 MB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.6068, allocations: 5.067 MB / 495.4 MB, free: 4.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.6069, allocations: 7.984 kB / 495.4 MB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009165/0.6078, allocations: 180 kB / 495.6 MB, free: 3.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.6095, allocations: 0.5361 MB / 496.1 MB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001691/0.6097, allocations: 35.98 kB / 496.2 MB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0145/0.6243, allocations: 13.23 MB / 0.4975 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.696e-05/0.6243, allocations: 8.016 kB / 0.4975 GB, free: 5.273 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006101/0.6304, allocations: 3.227 MB / 0.5006 GB, free: 1.957 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.6317, allocations: 435.7 kB / 0.501 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006353/0.6324, allocations: 35.94 kB / 0.5011 GB, free: 1.477 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.6338, allocations: 67.94 kB / 0.5011 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.6342, allocations: 101.2 kB / 0.5012 GB, free: 1.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.6343, allocations: 39.98 kB / 0.5013 GB, free: 1.273 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002671/0.637, allocations: 1.223 MB / 0.5025 GB, free: 60 kB / 430.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.637, allocations: 3.938 kB / 0.5025 GB, free: 56 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.003305/0.6403, allocations: 0.5743 MB / 0.503 GB, free: 15.48 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,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.00673/0.6471, allocations: 3.834 MB / 0.5068 GB, free: 11.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00445/0.6516, allocations: 2.37 MB / 0.5091 GB, free: 9.102 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6516, allocations: 0 / 0.5091 GB, free: 9.102 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003116/0.6547, allocations: 1.753 MB / 0.5108 GB, free: 7.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004014/0.6588, allocations: 0.5385 MB / 0.5113 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04404/0.7029, allocations: 20.28 MB / 0.5311 GB, free: 1.699 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003859/0.7068, allocations: 2.307 MB / 0.5334 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001806/0.7086, allocations: 397 kB / 0.5338 GB, free: 14.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002337/0.711, allocations: 1.128 MB / 0.5349 GB, free: 13.85 MB / 478.1 MB Notification: Performance of SimCode: time 1.613e-06/0.711, allocations: 0 / 0.5349 GB, free: 13.85 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3506/1.062, allocations: 53.4 MB / 0.587 GB, free: 136.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/15.05, allocations: 9.469 kB / 0.587 GB, free: 136.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Steinmetz/AIMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches