Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.001735/0.001735, allocations: 109.2 kB / 17.06 MB, free: 5.973 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.002002/0.002002, allocations: 196.1 kB / 18.01 MB, free: 5.051 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009657/0.0009657, allocations: 51.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.31, allocations: 49.43 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01366/0.3237, allocations: 11.81 MB / 412.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008258/0.332, allocations: 3.916 MB / 416 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002299/0.3344, allocations: 63.75 kB / 416 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002573/0.337, allocations: 0.8842 MB / 416.9 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003354/0.3404, allocations: 1.021 MB / 417.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.3418, allocations: 0.5226 MB / 418.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004425/0.3462, allocations: 3.44 MB / 421.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003301/0.3496, allocations: 2.712 MB / 424.6 MB, free: 256 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002599/0.3522, allocations: 1.546 MB / 426.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003378/0.3556, allocations: 1.942 MB / 428.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008079/0.3564, allocations: 411.9 kB / 428.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.358, allocations: 0.6363 MB / 429.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.3592, allocations: 1.149 MB / 430.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00258/0.3617, allocations: 1.839 MB / 432.1 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005916/0.3677, allocations: 5.383 MB / 437.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.3677, allocations: 0 / 437.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3677, allocations: 4 kB / 437.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001635/0.3679, allocations: 0 / 437.5 MB, free: 3.305 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.009025/0.3769, allocations: 3.805 MB / 441.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.377, allocations: 12.03 kB / 441.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006007/0.3776, allocations: 380.1 kB / 441.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001505/0.3791, allocations: 454.6 kB / 442.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.3832, allocations: 1.978 MB / 444.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.3833, allocations: 205.4 kB / 444.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005226/0.3839, allocations: 267.9 kB / 444.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007576/0.3915, allocations: 3.525 MB / 448.1 MB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.942e-05/0.3916, allocations: 4 kB / 448.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.3918, allocations: 108 kB / 448.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.392, allocations: 117.3 kB / 448.3 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005674/0.3977, allocations: 2.972 MB / 451.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/0.4168, allocations: 11.01 MB / 462.3 MB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002847/0.4197, allocations: 2.273 MB / 464.6 MB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/0.4217, allocations: 1.172 MB / 465.8 MB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003099/0.422, allocations: 207.5 kB / 466 MB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.4221, allocations: 55.81 kB / 466 MB, free: 6.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.306e-06/0.4221, allocations: 0 / 466 MB, free: 6.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=148): time 0.01598/0.4381, allocations: 7.553 MB / 473.6 MB, free: 14.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.4382, allocations: 68.72 kB / 473.6 MB, free: 14.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002822/0.441, allocations: 1.983 MB / 475.6 MB, free: 12.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/0.4412, allocations: 49.7 kB / 475.7 MB, free: 12.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008979/0.4421, allocations: 1.343 MB / 477 MB, free: 10.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/0.4425, allocations: 0.5307 MB / 477.5 MB, free: 10.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005061/0.443, allocations: 331.4 kB / 477.9 MB, free: 9.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.4431, allocations: 309.1 kB / 478.2 MB, free: 9.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.4446, allocations: 0.8823 MB / 479 MB, free: 8.773 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.4463, allocations: 1.375 MB / 480.4 MB, free: 7.191 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003219/0.4495, allocations: 2.373 MB / 482.8 MB, free: 4.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.4495, allocations: 8 kB / 482.8 MB, free: 4.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005122/0.4546, allocations: 2.995 MB / 485.8 MB, free: 1.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.4547, allocations: 16.06 kB / 485.8 MB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/0.4547, allocations: 19.98 kB / 485.8 MB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.4559, allocations: 462.2 kB / 486.3 MB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.4575, allocations: 435.3 kB / 486.7 MB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006323/0.4638, allocations: 6.099 MB / 492.8 MB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.4657, allocations: 119.8 kB / 492.9 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.4659, allocations: 80.08 kB / 493 MB, free: 10.08 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001439/0.4673, allocations: 0.8563 MB / 493.9 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004385/0.4677, allocations: 218.6 kB / 494.1 MB, free: 9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004359/0.4721, allocations: 2.591 MB / 496.7 MB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-05/0.4722, allocations: 16 kB / 496.7 MB, free: 6.352 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.4722, allocations: 11.98 kB / 496.7 MB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.4722, allocations: 3.984 kB / 496.7 MB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009693/0.4819, allocations: 5.622 MB / 0.4905 GB, free: 0.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/0.4819, allocations: 4.406 kB / 0.4906 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.4832, allocations: 287.5 kB / 0.4908 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.4845, allocations: 496.7 kB / 0.4913 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.4846, allocations: 43.97 kB / 0.4913 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007797/0.4924, allocations: 7.679 MB / 0.4988 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4924, allocations: 8 kB / 0.4988 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006195/0.4986, allocations: 3.848 MB / 0.5026 GB, free: 3.715 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/0.5, allocations: 487.5 kB / 0.5031 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000387/0.5004, allocations: 36 kB / 0.5031 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.5016, allocations: 103.9 kB / 0.5032 GB, free: 3.082 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.5019, allocations: 117.1 kB / 0.5033 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.502, allocations: 51.97 kB / 0.5034 GB, free: 2.914 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.504, allocations: 1.356 MB / 0.5047 GB, free: 1.535 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.5041, allocations: 0 / 0.5047 GB, free: 1.535 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001959/0.506, allocations: 0.5937 MB / 0.5053 GB, free: 0.9414 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.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 (125): * Single equations (assignments): 120 * Array equations: 2 * 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 {(3,16,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006323/0.5124, allocations: 4.519 MB / 0.5097 GB, free: 12.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004352/0.5167, allocations: 2.6 MB / 0.5122 GB, free: 9.676 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.5168, allocations: 4 kB / 0.5122 GB, free: 9.672 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002599/0.5194, allocations: 1.615 MB / 0.5138 GB, free: 8.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/0.5219, allocations: 496.3 kB / 0.5143 GB, free: 7.535 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03377/0.5557, allocations: 21.76 MB / 0.5355 GB, free: 1.051 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2148/0.7705, allocations: 2.125 MB / 0.5376 GB, free: 132.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001982/0.7726, allocations: 471.6 kB / 0.538 GB, free: 132.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/0.774, allocations: 1.059 MB / 0.5391 GB, free: 132.7 MB / 462.1 MB Notification: Performance of SimCode: time 2.404e-06/0.774, allocations: 2.531 kB / 0.5391 GB, free: 132.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09219/0.8662, allocations: 53.24 MB / 0.5911 GB, free: 87.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.84, allocations: 17.88 kB / 0.5911 GB, free: 87.9 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches