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.001721/0.001721, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001871/0.001872, allocations: 193.4 kB / 18 MB, free: 5.074 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.53/1.53, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.261, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01461/0.2756, allocations: 11.81 MB / 412.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007842/0.2835, allocations: 3.912 MB / 416 MB, free: 9.039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.2854, allocations: 67.69 kB / 416 MB, free: 8.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002544/0.288, allocations: 0.8529 MB / 416.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003342/0.2913, allocations: 0.9783 MB / 417.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001541/0.2929, allocations: 0.5266 MB / 418.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004744/0.2976, allocations: 3.436 MB / 421.8 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003589/0.3012, allocations: 2.712 MB / 424.5 MB, free: 380 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002552/0.3038, allocations: 1.538 MB / 426.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003294/0.3071, allocations: 1.934 MB / 428 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009667/0.3081, allocations: 408 kB / 428.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.3097, allocations: 0.6402 MB / 429.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.3111, allocations: 1.145 MB / 430.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002846/0.3139, allocations: 1.847 MB / 432.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00716/0.3211, allocations: 5.387 MB / 437.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3212, allocations: 0 / 437.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3212, allocations: 0 / 437.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001841/0.3214, allocations: 0 / 437.4 MB, free: 3.438 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.009894/0.3313, allocations: 3.797 MB / 441.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3313, allocations: 8.031 kB / 441.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000717/0.332, allocations: 388.1 kB / 441.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001523/0.3336, allocations: 450.6 kB / 442.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004154/0.3377, allocations: 1.978 MB / 444 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.338, allocations: 205.4 kB / 444.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000602/0.3386, allocations: 275.9 kB / 444.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007142/0.3457, allocations: 3.521 MB / 448 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.74e-05/0.3458, allocations: 7.984 kB / 448 MB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002973/0.3461, allocations: 112 kB / 448.1 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/0.3463, allocations: 121.3 kB / 448.3 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006066/0.3524, allocations: 2.968 MB / 451.2 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02078/0.3732, allocations: 11 MB / 462.2 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003279/0.3765, allocations: 2.273 MB / 464.5 MB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002211/0.3788, allocations: 1.18 MB / 465.7 MB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003372/0.3791, allocations: 207.5 kB / 465.9 MB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.3792, allocations: 47.88 kB / 465.9 MB, free: 6.164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.747e-06/0.3792, allocations: 0 / 465.9 MB, free: 6.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=148): time 0.01744/0.3966, allocations: 7.555 MB / 473.5 MB, free: 14.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.3967, allocations: 68.72 kB / 473.6 MB, free: 14.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003151/0.3999, allocations: 1.975 MB / 475.5 MB, free: 12.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.4, allocations: 57.7 kB / 475.6 MB, free: 12.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.4012, allocations: 1.346 MB / 476.9 MB, free: 10.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005023/0.4017, allocations: 0.5229 MB / 477.5 MB, free: 10.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005672/0.4023, allocations: 331.4 kB / 477.8 MB, free: 10.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.4024, allocations: 301.1 kB / 478.1 MB, free: 9.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.404, allocations: 0.8901 MB / 479 MB, free: 8.906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/0.406, allocations: 1.371 MB / 480.3 MB, free: 7.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003693/0.4097, allocations: 2.385 MB / 482.7 MB, free: 4.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.4097, allocations: 7.938 kB / 482.7 MB, free: 4.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005613/0.4153, allocations: 2.995 MB / 485.7 MB, free: 1.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.4154, allocations: 12 kB / 485.7 MB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.4154, allocations: 12 kB / 485.8 MB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.4167, allocations: 462.6 kB / 486.2 MB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/0.4184, allocations: 435.3 kB / 486.6 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007792/0.4262, allocations: 6.105 MB / 492.7 MB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.4281, allocations: 127.8 kB / 492.9 MB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000197/0.4283, allocations: 71.98 kB / 492.9 MB, free: 10.21 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.001699/0.43, allocations: 0.8485 MB / 493.8 MB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005714/0.4306, allocations: 222.6 kB / 494 MB, free: 9.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005114/0.4357, allocations: 2.595 MB / 496.6 MB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.384e-05/0.4358, allocations: 16 kB / 496.6 MB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.4358, allocations: 8 kB / 496.6 MB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/0.4359, allocations: 7.969 kB / 496.6 MB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.447, allocations: 5.614 MB / 0.4905 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.4471, allocations: 7.938 kB / 0.4905 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/0.4483, allocations: 284 kB / 0.4907 GB, free: 444 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/0.4498, allocations: 0.4902 MB / 0.4912 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001264/0.45, allocations: 39.97 kB / 0.4913 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009648/0.4596, allocations: 7.691 MB / 0.4988 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4597, allocations: 4 kB / 0.4988 GB, free: 7.781 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006972/0.4667, allocations: 3.856 MB / 0.5025 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/0.4681, allocations: 483.5 kB / 0.503 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003589/0.4684, allocations: 35.98 kB / 0.503 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.4697, allocations: 103.9 kB / 0.5031 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003315/0.47, allocations: 117 kB / 0.5032 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.4702, allocations: 47.98 kB / 0.5033 GB, free: 3.043 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002311/0.4725, allocations: 1.356 MB / 0.5046 GB, free: 1.664 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4725, allocations: 4 kB / 0.5046 GB, free: 1.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002235/0.4747, allocations: 0.5858 MB / 0.5052 GB, free: 1.074 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.007486/0.4822, allocations: 4.519 MB / 0.5096 GB, free: 12.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004815/0.4871, allocations: 2.61 MB / 0.5122 GB, free: 9.797 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.4871, allocations: 1.812 kB / 0.5122 GB, free: 9.797 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003001/0.4901, allocations: 1.615 MB / 0.5137 GB, free: 8.145 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/0.4927, allocations: 491.3 kB / 0.5142 GB, free: 7.664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03766/0.5304, allocations: 21.76 MB / 0.5355 GB, free: 1.172 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2035/0.734, allocations: 2.132 MB / 0.5375 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001923/0.736, allocations: 468.2 kB / 0.538 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/0.7374, allocations: 1.061 MB / 0.539 GB, free: 132.5 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7374, allocations: 0.5 kB / 0.539 GB, free: 132.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08928/0.8267, allocations: 53.24 MB / 0.591 GB, free: 87.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.49, allocations: 18.12 kB / 0.591 GB, free: 87.74 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