Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_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.001737/0.001737, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001927/0.001927, allocations: 191.5 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.28/2.28, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 44.06 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1433, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.02477/0.1681, allocations: 16.64 MB / 366.8 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3626/0.5308, allocations: 5.417 MB / 372.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00702/0.5379, allocations: 98.81 kB / 372.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007949/0.5459, allocations: 1.257 MB / 373.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.5569, allocations: 1.607 MB / 375.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006432/0.5634, allocations: 1.036 MB / 376.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01556/0.579, allocations: 5.096 MB / 381.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01486/0.594, allocations: 4.313 MB / 385.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007435/0.6015, allocations: 2.17 MB / 387.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00807/0.6096, allocations: 2.591 MB / 390.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004421/0.6141, allocations: 0.6133 MB / 391 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006382/0.6205, allocations: 0.8461 MB / 391.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005046/0.6256, allocations: 1.422 MB / 393.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009903/0.6355, allocations: 2.634 MB / 395.9 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01774/0.6533, allocations: 8.032 MB / 403.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.6534, allocations: 0 / 403.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6534, allocations: 0 / 403.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003472/0.6538, allocations: 0 / 403.9 MB, free: 11.43 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.03588/0.6897, allocations: 5.372 MB / 409.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001007/0.6899, allocations: 15.89 kB / 409.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00376/0.6936, allocations: 0.6012 MB / 409.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01348/0.7072, allocations: 0.9998 MB / 410.9 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01345/0.7207, allocations: 2.883 MB / 413.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008012/0.7215, allocations: 318.2 kB / 414.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002479/0.7241, allocations: 394 kB / 414.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02574/0.7499, allocations: 5.225 MB / 419.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002662/0.7502, allocations: 3.906 kB / 419.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001734/0.752, allocations: 176 kB / 419.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004/0.7524, allocations: 164 kB / 420.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02029/0.7727, allocations: 4.462 MB / 424.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05529/0.828, allocations: 16.8 MB / 441.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0131/0.8413, allocations: 8.406 MB / 449.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006948/0.8483, allocations: 1.709 MB / 451.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0173/0.8657, allocations: 4.98 MB / 456.4 MB, free: 5.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.57e-05/0.8658, allocations: 47.88 kB / 456.5 MB, free: 5.195 MB / 366.1 MB Notification: Performance of pre-optimization done (n=157): time 8.466e-06/0.8659, allocations: 4 kB / 456.5 MB, free: 5.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=160): time 0.02104/0.8869, allocations: 6.134 MB / 462.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.867e-05/0.8871, allocations: 68.72 kB / 462.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006434/0.8935, allocations: 2.286 MB / 465 MB, free: 12.51 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004285/0.894, allocations: 49.7 kB / 465 MB, free: 12.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002194/0.8962, allocations: 1.849 MB / 466.9 MB, free: 10.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/0.8973, allocations: 0.5494 MB / 467.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009596/0.8983, allocations: 391.6 kB / 467.8 MB, free: 9.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.8985, allocations: 309.1 kB / 468.1 MB, free: 9.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/0.9009, allocations: 0.8436 MB / 468.9 MB, free: 8.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003315/0.9043, allocations: 1.559 MB / 470.5 MB, free: 6.621 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005854/0.9102, allocations: 2.557 MB / 473.1 MB, free: 3.754 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.142e-05/0.9102, allocations: 8 kB / 473.1 MB, free: 3.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.009418/0.9197, allocations: 2.884 MB / 476 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.044e-05/0.9198, allocations: 20.03 kB / 476 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.489e-05/0.9199, allocations: 31.92 kB / 476 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005518/0.9205, allocations: 117.7 kB / 476.1 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00343/0.9239, allocations: 0.5382 MB / 476.7 MB, free: 120 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003096/0.927, allocations: 1.996 MB / 478.7 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/0.9311, allocations: 111.8 kB / 478.8 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006873/0.9319, allocations: 99.98 kB / 478.9 MB, free: 13.78 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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.005251/0.9372, allocations: 1.192 MB / 480.1 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001249/0.9384, allocations: 245.2 kB / 480.3 MB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008033/0.9465, allocations: 2.444 MB / 482.7 MB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-05/0.9466, allocations: 12 kB / 482.7 MB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-05/0.9466, allocations: 8 kB / 482.8 MB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.112e-05/0.9466, allocations: 11.91 kB / 482.8 MB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01982/0.9665, allocations: 5.784 MB / 488.5 MB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/0.9666, allocations: 4.031 kB / 488.6 MB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/0.9686, allocations: 283.6 kB / 488.8 MB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.9699, allocations: 322.2 kB / 489.1 MB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002738/0.9702, allocations: 39.92 kB / 489.2 MB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/0.9807, allocations: 6.971 MB / 496.2 MB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.9807, allocations: 4.031 kB / 496.2 MB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.9911, allocations: 3.548 MB / 499.7 MB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002562/0.9937, allocations: 0.494 MB / 0.4885 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/0.9951, allocations: 32 kB / 0.4885 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002597/0.9977, allocations: 83.92 kB / 0.4886 GB, free: 7.629 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005833/0.9983, allocations: 121.1 kB / 0.4887 GB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000227/0.9986, allocations: 43.98 kB / 0.4887 GB, free: 7.469 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004957/1.004, allocations: 1.552 MB / 0.4903 GB, free: 5.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.2e-07/1.004, allocations: 0 / 0.4903 GB, free: 5.902 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004954/1.009, allocations: 0.668 MB / 0.4909 GB, free: 5.234 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.01136/1.02, allocations: 4.195 MB / 0.495 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01123/1.031, allocations: 2.906 MB / 0.4978 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.031, allocations: 0 / 0.4978 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003889/1.035, allocations: 1.437 MB / 0.4993 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006035/1.041, allocations: 0.5978 MB / 0.4998 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.378/1.419, allocations: 27.63 MB / 0.5268 GB, free: 147 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004617/1.424, allocations: 2.668 MB / 0.5294 GB, free: 146.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003252/1.427, allocations: 0.5547 MB / 0.53 GB, free: 146.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002947/1.43, allocations: 1.469 MB / 0.5314 GB, free: 146.2 MB / 446.1 MB Notification: Performance of SimCode: time 2.114e-06/1.43, allocations: 0 / 0.5314 GB, free: 146.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1658/1.596, allocations: 60.04 MB / 0.59 GB, free: 102.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.9/19.49, allocations: 15.95 kB / 0.59 GB, free: 102.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches