Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 124 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 190.9 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_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_0_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.001461/0.001461, allocations: 51.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09306/0.09452, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01031/0.1048, allocations: 8.266 MB / 426 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004848/0.1097, allocations: 2.696 MB / 428.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008448/0.1105, allocations: 27.88 kB / 428.8 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.112, allocations: 0.5871 MB / 429.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.1132, allocations: 0.4963 MB / 429.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005271/0.1137, allocations: 271.6 kB / 430.1 MB, free: 244 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001708/0.1155, allocations: 1.502 MB / 431.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006677/0.1161, allocations: 398.9 kB / 432 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007818/0.1169, allocations: 0.5798 MB / 432.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007602/0.1177, allocations: 0.6144 MB / 433.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.1178, allocations: 140 kB / 433.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003401/0.1182, allocations: 176 kB / 433.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002644/0.1184, allocations: 286.9 kB / 433.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006737/0.1191, allocations: 0.6765 MB / 434.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002002/0.1211, allocations: 1.766 MB / 436.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1211, allocations: 4 kB / 436.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1211, allocations: 0 / 436.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.1211, allocations: 0 / 436.2 MB, free: 10.07 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002562/0.1237, allocations: 1.514 MB / 437.8 MB, free: 8.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1238, allocations: 8.031 kB / 437.8 MB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00018/0.1239, allocations: 152.4 kB / 437.9 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006568/0.1246, allocations: 196 kB / 438.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.1258, allocations: 0.7663 MB / 438.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.036e-05/0.1259, allocations: 70 kB / 438.9 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.126, allocations: 96 kB / 439 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.1276, allocations: 0.9425 MB / 440 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.1277, allocations: 11.89 kB / 440 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.563e-05/0.1277, allocations: 44 kB / 440 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.1278, allocations: 24 kB / 440.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.1291, allocations: 0.648 MB / 440.7 MB, free: 5.473 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005131/0.1342, allocations: 3.924 MB / 444.6 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007848/0.135, allocations: 430.1 kB / 445 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006333/0.1356, allocations: 261.3 kB / 445.3 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.182e-05/0.1357, allocations: 7.938 kB / 445.3 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.1357, allocations: 38.56 kB / 445.3 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.574e-06/0.1357, allocations: 0 / 445.3 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.1801/0.3159, allocations: 1.557 MB / 446.9 MB, free: 29.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.3159, allocations: 85.53 kB / 447 MB, free: 29.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.3169, allocations: 0.8399 MB / 447.8 MB, free: 29.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.3169, allocations: 35.61 kB / 447.9 MB, free: 29.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.3172, allocations: 0.5829 MB / 448.4 MB, free: 29.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.963e-05/0.3173, allocations: 168.4 kB / 448.6 MB, free: 29.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.3175, allocations: 137.4 kB / 448.7 MB, free: 29.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.05e-05/0.3176, allocations: 332.7 kB / 449.1 MB, free: 28.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003363/0.3179, allocations: 174.7 kB / 449.2 MB, free: 28.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/0.3183, allocations: 474.7 kB / 449.7 MB, free: 28.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007588/0.3191, allocations: 0.6792 MB / 450.4 MB, free: 28.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3191, allocations: 3.969 kB / 450.4 MB, free: 28.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00123/0.3203, allocations: 0.7841 MB / 451.2 MB, free: 28.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3203, allocations: 10.03 kB / 451.2 MB, free: 28.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/0.3203, allocations: 13.69 kB / 451.2 MB, free: 28.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002798/0.3206, allocations: 80.67 kB / 451.3 MB, free: 28.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.3211, allocations: 161.1 kB / 451.4 MB, free: 28.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.3229, allocations: 3.137 MB / 454.6 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005766/0.3235, allocations: 36.2 kB / 454.6 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-05/0.3235, allocations: 34.75 kB / 454.6 MB, free: 25.21 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.0003716/0.3239, allocations: 267.5 kB / 454.9 MB, free: 25.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.324, allocations: 96.75 kB / 455 MB, free: 25.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009399/0.325, allocations: 0.4939 MB / 455.5 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.325, allocations: 12 kB / 455.5 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.325, allocations: 1.25 kB / 455.5 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.325, allocations: 3.797 kB / 455.5 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.3272, allocations: 1.476 MB / 457 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.3272, allocations: 1.656 kB / 457 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003946/0.3276, allocations: 71.72 kB / 457 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002349/0.3278, allocations: 77.09 kB / 457.1 MB, free: 23.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.3279, allocations: 9.484 kB / 457.1 MB, free: 23.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/0.3297, allocations: 3.13 MB / 460.3 MB, free: 20.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3297, allocations: 10.25 kB / 460.3 MB, free: 20.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.331, allocations: 0.7945 MB / 461.1 MB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002759/0.3312, allocations: 204.6 kB / 461.3 MB, free: 20.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.579e-05/0.3313, allocations: 21.84 kB / 461.3 MB, free: 20.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.3318, allocations: 25.45 kB / 461.3 MB, free: 20.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.3319, allocations: 39.06 kB / 461.4 MB, free: 20.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.3319, allocations: 12.5 kB / 461.4 MB, free: 20.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007927/0.3327, allocations: 0.5799 MB / 461.9 MB, free: 19.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3327, allocations: 0 / 461.9 MB, free: 19.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009039/0.3336, allocations: 206.8 kB / 462.1 MB, free: 19.88 MB / 366.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.001475/0.3351, allocations: 1.377 MB / 463.5 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.3363, allocations: 0.6872 MB / 464.2 MB, free: 18.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3363, allocations: 4.375 kB / 464.2 MB, free: 18.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006173/0.3369, allocations: 441.4 kB / 464.6 MB, free: 18.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.338, allocations: 221 kB / 464.9 MB, free: 18.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009481/0.3475, allocations: 7.476 MB / 472.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.348, allocations: 1.01 MB / 473.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004588/0.3484, allocations: 111.7 kB / 473.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.3488, allocations: 387.6 kB / 473.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of SimCode: time 1.173e-06/0.3488, allocations: 0 / 473.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05195/0.4007, allocations: 19.59 MB / 493.4 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.85, allocations: 7.938 kB / 493.4 MB, free: 0.9297 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.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.781977633945644]