Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001965/0.001965, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.437/1.437, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.2142/0.3255, allocations: 8.273 MB / 434.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004046/0.3295, allocations: 2.752 MB / 437.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008452/0.3304, allocations: 28.91 kB / 437.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.3319, allocations: 0.5829 MB / 438 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001403/0.3333, allocations: 0.5016 MB / 438.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.3339, allocations: 270.4 kB / 438.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001916/0.3358, allocations: 1.508 MB / 440.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000707/0.3366, allocations: 402.8 kB / 440.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.3376, allocations: 0.5849 MB / 441.2 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008334/0.3385, allocations: 0.6164 MB / 441.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.3387, allocations: 141.2 kB / 442 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004643/0.3392, allocations: 188.2 kB / 442.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002101/0.3394, allocations: 283.6 kB / 442.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006986/0.3401, allocations: 0.6752 MB / 443.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002547/0.3426, allocations: 1.765 MB / 444.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3426, allocations: 4 kB / 444.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.3426, allocations: 1.156 kB / 444.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.077e-05/0.3427, allocations: 0 / 444.9 MB, free: 2.234 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003128/0.3458, allocations: 1.516 MB / 446.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3458, allocations: 13.44 kB / 446.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001843/0.346, allocations: 148.9 kB / 446.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007996/0.3468, allocations: 213.7 kB / 446.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.3481, allocations: 0.7721 MB / 447.5 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.753e-05/0.3482, allocations: 69.41 kB / 447.6 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.3483, allocations: 103.8 kB / 447.7 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.35, allocations: 0.9403 MB / 448.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.852e-05/0.3501, allocations: 11.12 kB / 448.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.545e-05/0.3502, allocations: 36.69 kB / 448.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.3502, allocations: 23.91 kB / 448.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.3515, allocations: 0.6469 MB / 449.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006681/0.3582, allocations: 3.925 MB / 453.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008643/0.3591, allocations: 428.5 kB / 453.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006822/0.3598, allocations: 258.1 kB / 453.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.651e-05/0.3598, allocations: 4.094 kB / 454 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.3599, allocations: 43.69 kB / 454 MB, free: 12.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.565e-06/0.3599, allocations: 0 / 454 MB, free: 12.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003732/0.3636, allocations: 1.567 MB / 455.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/0.3637, allocations: 87.42 kB / 455.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.365, allocations: 0.8436 MB / 456.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.3651, allocations: 36.45 kB / 456.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005106/0.3656, allocations: 0.5735 MB / 457.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.3657, allocations: 170.3 kB / 457.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002142/0.366, allocations: 132 kB / 457.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3661, allocations: 336.9 kB / 457.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.3665, allocations: 178.8 kB / 457.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006127/0.3672, allocations: 465 kB / 458.4 MB, free: 9.664 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.3682, allocations: 0.6797 MB / 459 MB, free: 9.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3682, allocations: 7.094 kB / 459 MB, free: 9.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001555/0.3698, allocations: 0.7866 MB / 459.8 MB, free: 8.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.3698, allocations: 8.344 kB / 459.8 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.3698, allocations: 9.969 kB / 459.8 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002973/0.3701, allocations: 91.83 kB / 459.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005128/0.3706, allocations: 154 kB / 460.1 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002748/0.3734, allocations: 3.148 MB / 463.2 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/0.3742, allocations: 37.97 kB / 463.3 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-05/0.3742, allocations: 36.69 kB / 463.3 MB, free: 5.406 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004936/0.3747, allocations: 269 kB / 463.6 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.3749, allocations: 92.38 kB / 463.7 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.3759, allocations: 0.4949 MB / 464.2 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.376, allocations: 4.969 kB / 464.2 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.376, allocations: 1.344 kB / 464.2 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.376, allocations: 3.984 kB / 464.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002504/0.3785, allocations: 1.466 MB / 465.6 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.3785, allocations: 2.469 kB / 465.6 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.3788, allocations: 80.77 kB / 465.7 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002218/0.379, allocations: 68.27 kB / 465.8 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.3791, allocations: 8.594 kB / 465.8 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/0.3817, allocations: 3.131 MB / 468.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3817, allocations: 2.25 kB / 468.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.3832, allocations: 0.8111 MB / 469.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004055/0.3836, allocations: 207 kB / 469.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3838, allocations: 16.59 kB / 469.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004567/0.3842, allocations: 31.77 kB / 470 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3843, allocations: 39.14 kB / 470 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.3844, allocations: 21.92 kB / 470 MB, free: 15.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008785/0.3852, allocations: 0.571 MB / 470.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3852, allocations: 0 / 470.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00101/0.3862, allocations: 212.7 kB / 470.8 MB, free: 15.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,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.001936/0.3882, allocations: 1.365 MB / 472.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.3897, allocations: 0.6871 MB / 472.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3897, allocations: 0 / 472.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007478/0.3904, allocations: 447.8 kB / 473.3 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.3917, allocations: 237.9 kB / 473.5 MB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.4045, allocations: 7.486 MB / 481 MB, free: 8.266 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007562/0.4053, allocations: 1.013 MB / 482 MB, free: 7.223 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005355/0.4058, allocations: 110.9 kB / 482.1 MB, free: 7.117 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000521/0.4063, allocations: 391.3 kB / 482.5 MB, free: 6.738 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4063, allocations: 0 / 482.5 MB, free: 6.738 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05917/0.4655, allocations: 19.62 MB / 0.4904 GB, free: 3.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.69, allocations: 0 / 0.4904 GB, free: 3.422 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.772537686003488]