Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001113/0.001113, allocations: 107.5 kB / 16.92 MB, free: 6.332 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.001294/0.001294, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.32/1.32, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009786/0.0009786, allocations: 40.06 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09248, allocations: 49.45 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01178/0.1043, allocations: 10.18 MB / 360.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006254/0.1106, allocations: 3.217 MB / 363.6 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.1119, allocations: 59.75 kB / 363.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001641/0.1136, allocations: 0.6945 MB / 364.3 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002183/0.1158, allocations: 0.8386 MB / 365.2 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000776/0.1166, allocations: 411.4 kB / 365.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002734/0.1193, allocations: 2.947 MB / 368.5 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1487/0.268, allocations: 2.482 MB / 371 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.2698, allocations: 1.342 MB / 372.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001988/0.2718, allocations: 1.695 MB / 374 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005064/0.2724, allocations: 353.4 kB / 374.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008438/0.2732, allocations: 455.3 kB / 374.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009879/0.2742, allocations: 1.015 MB / 375.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001604/0.2758, allocations: 1.608 MB / 377.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004681/0.2805, allocations: 4.618 MB / 382.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2805, allocations: 0 / 382.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2806, allocations: 0 / 382.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001086/0.2807, allocations: 1.062 kB / 382.1 MB, free: 9.797 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006518/0.2872, allocations: 3.266 MB / 385.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2872, allocations: 9.188 kB / 385.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003903/0.2876, allocations: 334.9 kB / 385.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007565/0.2884, allocations: 331.4 kB / 386 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002377/0.2908, allocations: 1.708 MB / 387.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.2909, allocations: 183.1 kB / 387.9 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003357/0.2913, allocations: 231.5 kB / 388.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004455/0.2958, allocations: 3.138 MB / 391.2 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.715e-05/0.2958, allocations: 7.875 kB / 391.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002241/0.2961, allocations: 96.59 kB / 391.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.189e-05/0.2962, allocations: 107.6 kB / 391.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004069/0.3002, allocations: 2.697 MB / 394.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01357/0.3138, allocations: 9.731 MB / 403.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002629/0.3165, allocations: 2.172 MB / 406 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001881/0.3184, allocations: 1.107 MB / 407.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003319/0.3187, allocations: 207 kB / 407.4 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.3188, allocations: 47.56 kB / 407.4 MB, free: 8.266 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.949e-06/0.3188, allocations: 0 / 407.4 MB, free: 8.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.01443/0.3332, allocations: 6.837 MB / 414.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.3333, allocations: 64.72 kB / 414.3 MB, free: 1.211 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.3364, allocations: 1.741 MB / 416 MB, free: 15.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.3365, allocations: 53.7 kB / 416.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008655/0.3374, allocations: 1.157 MB / 417.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003667/0.3378, allocations: 455.1 kB / 417.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000497/0.3383, allocations: 292.9 kB / 418 MB, free: 13.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.931e-05/0.3384, allocations: 305.1 kB / 418.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.3397, allocations: 0.7911 MB / 419.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/0.3413, allocations: 1.203 MB / 420.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002913/0.3443, allocations: 2.095 MB / 422.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.3443, allocations: 4 kB / 422.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004472/0.3488, allocations: 2.668 MB / 425 MB, free: 6.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.3488, allocations: 12.06 kB / 425.1 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.3488, allocations: 12 kB / 425.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.3499, allocations: 425.8 kB / 425.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.3513, allocations: 362.4 kB / 425.8 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007105/0.3584, allocations: 7.082 MB / 432.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.3598, allocations: 103.8 kB / 433 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.36, allocations: 60 kB / 433.1 MB, free: 13.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001448/0.3614, allocations: 0.7953 MB / 433.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004317/0.3619, allocations: 181.8 kB / 434 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004335/0.3662, allocations: 2.382 MB / 436.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.3662, allocations: 19.94 kB / 436.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.3663, allocations: 7.938 kB / 436.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.3663, allocations: 7.922 kB / 436.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009418/0.3757, allocations: 5.125 MB / 441.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.3757, allocations: 8 kB / 441.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.3768, allocations: 231.2 kB / 441.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/0.378, allocations: 459.2 kB / 442.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.3781, allocations: 35.97 kB / 442.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008356/0.3865, allocations: 8.645 MB / 451 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.3865, allocations: 4 kB / 451 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006164/0.3927, allocations: 3.518 MB / 454.5 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.3939, allocations: 434.7 kB / 454.9 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005743/0.3944, allocations: 35.98 kB / 454.9 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.3957, allocations: 83.91 kB / 455 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/0.3961, allocations: 116.2 kB / 455.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.933e-05/0.3962, allocations: 40.08 kB / 455.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002167/0.3984, allocations: 1.198 MB / 456.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3984, allocations: 0 / 456.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002308/0.4007, allocations: 0.5078 MB / 456.9 MB, free: 5.332 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,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.006138/0.4068, allocations: 4.16 MB / 461 MB, free: 1.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005797/0.4126, allocations: 3.117 MB / 464.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.4127, allocations: 4 kB / 464.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00264/0.4153, allocations: 1.602 MB / 465.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002813/0.4182, allocations: 474.7 kB / 466.2 MB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03403/0.4522, allocations: 21.47 MB / 487.7 MB, free: 4.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/0.4546, allocations: 2.001 MB / 489.7 MB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00157/0.4562, allocations: 439.5 kB / 490.1 MB, free: 2.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001416/0.4576, allocations: 0.9211 MB / 491 MB, free: 1.559 MB / 398.1 MB Notification: Performance of SimCode: time 9.51e-07/0.4576, allocations: 0 / 491 MB, free: 1.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09182/0.5495, allocations: 46.88 MB / 0.5253 GB, free: 3.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.844/10.39, allocations: 18.86 kB / 0.5253 GB, free: 3.164 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches