Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",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.001082/0.001082, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001145/0.001145, allocations: 200 kB / 18.01 MB, free: 5.047 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.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 47.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2401, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01243/0.2525, allocations: 11.81 MB / 412.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006878/0.2594, allocations: 3.738 MB / 415.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.261, allocations: 75.69 kB / 415.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002344/0.2634, allocations: 0.9046 MB / 416.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003305/0.2667, allocations: 1.134 MB / 417.9 MB, free: 7.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.268, allocations: 487.4 kB / 418.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004785/0.2728, allocations: 4.225 MB / 422.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004207/0.277, allocations: 3.293 MB / 425.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.2797, allocations: 1.912 MB / 427.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003628/0.2834, allocations: 2.331 MB / 430.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.2845, allocations: 0.4922 MB / 430.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.2862, allocations: 0.5819 MB / 431.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001847/0.2881, allocations: 1.403 MB / 432.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003503/0.2916, allocations: 2.209 MB / 434.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008424/0.3, allocations: 6.563 MB / 441.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3001, allocations: 0 / 441.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3001, allocations: 0 / 441.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002439/0.3003, allocations: 0 / 441.4 MB, free: 15.43 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01157/0.3119, allocations: 4.408 MB / 445.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.312, allocations: 12.03 kB / 445.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/0.313, allocations: 442.6 kB / 446.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001488/0.3145, allocations: 454.3 kB / 446.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004344/0.3188, allocations: 2.415 MB / 449.1 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.319, allocations: 226.2 kB / 449.3 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005292/0.3196, allocations: 304 kB / 449.6 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007106/0.3267, allocations: 4.377 MB / 454 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.86e-05/0.3268, allocations: 7.953 kB / 454 MB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002942/0.3271, allocations: 135.9 kB / 454.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.3272, allocations: 130 kB / 454.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006534/0.3338, allocations: 3.787 MB / 458.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0228/0.3566, allocations: 13.41 MB / 471.5 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00351/0.3602, allocations: 2.907 MB / 474.4 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002814/0.363, allocations: 1.688 MB / 476.1 MB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002782/0.3633, allocations: 122.4 kB / 476.2 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.3634, allocations: 55.88 kB / 476.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 3.496e-06/0.3634, allocations: 3.938 kB / 476.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01821/0.3816, allocations: 9.03 MB / 485.3 MB, free: 2.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.3817, allocations: 73.34 kB / 485.3 MB, free: 2.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003952/0.3856, allocations: 2.357 MB / 487.7 MB, free: 132 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001563/0.3858, allocations: 61.7 kB / 487.8 MB, free: 64 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/0.387, allocations: 1.497 MB / 489.3 MB, free: 14.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005126/0.3875, allocations: 0.6391 MB / 489.9 MB, free: 13.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006225/0.3882, allocations: 363.5 kB / 490.3 MB, free: 13.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.892e-05/0.3883, allocations: 301.1 kB / 490.5 MB, free: 13.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001797/0.3901, allocations: 1.12 MB / 491.7 MB, free: 12.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.3921, allocations: 1.571 MB / 493.2 MB, free: 10.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0038/0.3959, allocations: 2.784 MB / 496 MB, free: 7.426 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.3959, allocations: 7.938 kB / 496 MB, free: 7.418 MB / 414.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.00605/0.402, allocations: 3.598 MB / 499.6 MB, free: 3.789 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.402, allocations: 20 kB / 499.7 MB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.4021, allocations: 12 kB / 499.7 MB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/0.4041, allocations: 0.798 MB / 0.4887 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/0.4059, allocations: 459.3 kB / 0.4892 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.417, allocations: 11.18 MB / 0.5001 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/0.419, allocations: 123.8 kB / 0.5002 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002758/0.4193, allocations: 87.98 kB / 0.5003 GB, free: 6.398 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[1].y,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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001977/0.4213, allocations: 1.08 MB / 0.5013 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006111/0.4219, allocations: 262.3 kB / 0.5016 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005965/0.4279, allocations: 3.301 MB / 0.5048 GB, free: 1.707 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.4279, allocations: 16 kB / 0.5048 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/0.428, allocations: 8 kB / 0.5048 GB, free: 1.684 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/0.428, allocations: 11.95 kB / 0.5049 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.44, allocations: 6.852 MB / 0.5115 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.44, allocations: 0 / 0.5115 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.4414, allocations: 303.8 kB / 0.5118 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002434/0.4438, allocations: 0.9158 MB / 0.5127 GB, free: 9.461 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/0.444, allocations: 43.98 kB / 0.5128 GB, free: 9.418 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/0.4581, allocations: 14.63 MB / 0.5271 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4581, allocations: 0 / 0.5271 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008106/0.4663, allocations: 4.87 MB / 0.5318 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/0.4677, allocations: 0.5735 MB / 0.5324 GB, free: 4.281 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005744/0.4683, allocations: 43.92 kB / 0.5324 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/0.4698, allocations: 119.9 kB / 0.5325 GB, free: 4.121 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004093/0.4703, allocations: 157.7 kB / 0.5327 GB, free: 3.965 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.4704, allocations: 51.98 kB / 0.5327 GB, free: 3.914 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002816/0.4732, allocations: 1.625 MB / 0.5343 GB, free: 2.273 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.4732, allocations: 0 / 0.5343 GB, free: 2.273 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002343/0.4756, allocations: 0.711 MB / 0.535 GB, free: 1.562 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.1842/0.6598, allocations: 5.527 MB / 0.5404 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004317/0.6642, allocations: 3.592 MB / 0.5439 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.6642, allocations: 0.875 kB / 0.5439 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002918/0.6671, allocations: 2.516 MB / 0.5464 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002797/0.6699, allocations: 0.7181 MB / 0.5471 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0314/0.7013, allocations: 26.32 MB / 0.5728 GB, free: 103.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001686/0.7031, allocations: 2.517 MB / 0.5752 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001466/0.7045, allocations: 0.5905 MB / 0.5758 GB, free: 100.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/0.7057, allocations: 1.261 MB / 0.577 GB, free: 99.06 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.7057, allocations: 0 / 0.577 GB, free: 99.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09887/0.8046, allocations: 66.63 MB / 0.6421 GB, free: 33.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/14.91, allocations: 8.062 kB / 0.6421 GB, free: 33.07 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches