Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",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.001469/0.001469, allocations: 113.4 kB / 17.73 MB, free: 5.344 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.001481/0.001482, allocations: 184.1 kB / 18.66 MB, free: 4.422 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.342/1.342, 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.001331/0.001331, allocations: 51.94 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08787, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.2031/0.291, allocations: 16.59 MB / 391.3 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.3019, allocations: 5.437 MB / 396.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003734/0.3057, allocations: 91.97 kB / 396.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004064/0.3098, allocations: 1.257 MB / 398 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006001/0.3158, allocations: 1.592 MB / 399.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003456/0.3193, allocations: 1.058 MB / 400.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008699/0.328, allocations: 5.111 MB / 405.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007512/0.3356, allocations: 3.84 MB / 409.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004636/0.3403, allocations: 2.17 MB / 411.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005049/0.3453, allocations: 2.604 MB / 414.4 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001486/0.3469, allocations: 0.6121 MB / 415 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003363/0.3502, allocations: 0.8331 MB / 415.9 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001741/0.352, allocations: 1.416 MB / 417.3 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004821/0.3568, allocations: 2.642 MB / 419.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00914/0.366, allocations: 8.074 MB / 428 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.366, allocations: 0 / 428 MB, free: 10.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3661, allocations: 4 kB / 428 MB, free: 10.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002184/0.3663, allocations: 0 / 428 MB, free: 10.54 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01567/0.382, allocations: 5.374 MB / 433.4 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.382, allocations: 8.031 kB / 433.4 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001034/0.3831, allocations: 0.6066 MB / 434 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005157/0.3882, allocations: 0.9908 MB / 435 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006224/0.3945, allocations: 2.796 MB / 437.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002734/0.3948, allocations: 312 kB / 438.1 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009187/0.3957, allocations: 396 kB / 438.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009727/0.4054, allocations: 5.213 MB / 443.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.264e-05/0.4056, allocations: 11.92 kB / 443.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003633/0.4059, allocations: 164 kB / 443.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001487/0.4061, allocations: 172 kB / 444 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007742/0.4138, allocations: 4.439 MB / 448.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02467/0.4385, allocations: 16.6 MB / 465 MB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007174/0.4458, allocations: 8.421 MB / 473.5 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002728/0.4485, allocations: 1.696 MB / 475.2 MB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007847/0.4564, allocations: 4.938 MB / 480.1 MB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.4564, allocations: 59.81 kB / 480.2 MB, free: 4.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=156): time 2.905e-06/0.4565, allocations: 0 / 480.2 MB, free: 4.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=159): time 0.01153/0.468, allocations: 6.1 MB / 486.3 MB, free: 14.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.4681, allocations: 72.66 kB / 486.3 MB, free: 14.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/0.4713, allocations: 2.286 MB / 488.6 MB, free: 11.72 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.4714, allocations: 49.7 kB / 488.7 MB, free: 11.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.4726, allocations: 1.86 MB / 490.5 MB, free: 9.781 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004118/0.4731, allocations: 0.543 MB / 491.1 MB, free: 9.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005573/0.4736, allocations: 399.6 kB / 491.5 MB, free: 8.832 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.05e-05/0.4737, allocations: 305.1 kB / 491.8 MB, free: 8.531 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.4751, allocations: 0.8358 MB / 492.6 MB, free: 7.691 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/0.4769, allocations: 1.568 MB / 494.2 MB, free: 5.793 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003299/0.4803, allocations: 2.551 MB / 496.7 MB, free: 2.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.4803, allocations: 7.938 kB / 496.7 MB, free: 2.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004733/0.485, allocations: 2.88 MB / 499.6 MB, free: 0 / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.4851, allocations: 19.39 kB / 499.6 MB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.4851, allocations: 28 kB / 499.6 MB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003268/0.4854, allocations: 117.7 kB / 499.8 MB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/0.4874, allocations: 0.5421 MB / 0.4886 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/0.4891, allocations: 1.997 MB / 0.4905 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.4908, allocations: 119.9 kB / 0.4906 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.4909, allocations: 96 kB / 0.4907 GB, free: 12.95 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002048/0.493, allocations: 1.188 MB / 0.4919 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004306/0.4934, allocations: 248.9 kB / 0.4921 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004085/0.4975, allocations: 2.429 MB / 0.4945 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.4976, allocations: 16 kB / 0.4945 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.4976, allocations: 8 kB / 0.4945 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.4976, allocations: 11.91 kB / 0.4945 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008925/0.5065, allocations: 5.776 MB / 0.5002 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.5066, allocations: 4 kB / 0.5002 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.5078, allocations: 287.6 kB / 0.5005 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000825/0.5087, allocations: 314.3 kB / 0.5008 GB, free: 2.469 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.5088, allocations: 43.92 kB / 0.5008 GB, free: 2.426 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006622/0.5154, allocations: 6.947 MB / 0.5076 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.5155, allocations: 3.938 kB / 0.5076 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005702/0.5212, allocations: 3.548 MB / 0.5111 GB, free: 7.414 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/0.5224, allocations: 0.4901 MB / 0.5115 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.5228, allocations: 32 kB / 0.5116 GB, free: 6.871 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.5239, allocations: 91.92 kB / 0.5116 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.5242, allocations: 117.1 kB / 0.5118 GB, free: 6.664 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.874e-05/0.5243, allocations: 43.98 kB / 0.5118 GB, free: 6.621 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002368/0.5267, allocations: 1.552 MB / 0.5133 GB, free: 5.055 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5267, allocations: 0 / 0.5133 GB, free: 5.055 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002246/0.529, allocations: 0.6718 MB / 0.514 GB, free: 4.383 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005771/0.5348, allocations: 4.174 MB / 0.518 GB, free: 116 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003781/0.5386, allocations: 2.282 MB / 0.5203 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5386, allocations: 0 / 0.5203 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002217/0.5408, allocations: 1.437 MB / 0.5217 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003192/0.544, allocations: 0.591 MB / 0.5223 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03822/0.5822, allocations: 24.07 MB / 0.5458 GB, free: 2.719 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002367/0.5847, allocations: 2.661 MB / 0.5484 GB, free: 32 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.1796/0.7643, allocations: 0.5519 MB / 0.5489 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002428/0.7668, allocations: 1.468 MB / 0.5503 GB, free: 150.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7668, allocations: 1.125 kB / 0.5503 GB, free: 150.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.8681, allocations: 59.46 MB / 0.6084 GB, free: 111.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/15.28, allocations: 4 kB / 0.6084 GB, free: 111.5 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches