Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001285/0.001285, allocations: 114.5 kB / 18.45 MB, free: 4.566 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.001353/0.001353, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 207.6 MB / 231.8 MB, free: 4.047 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 56.34 kB / 342.3 MB, free: 9.984 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08471/0.0865, allocations: 49.13 MB / 391.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009556/0.09606, allocations: 8.218 MB / 399.6 MB, free: 444 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004774/0.1008, allocations: 2.739 MB / 402.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007926/0.1016, allocations: 31.88 kB / 402.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.103, allocations: 0.5753 MB / 403 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001182/0.1042, allocations: 0.508 MB / 403.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005235/0.1048, allocations: 259.7 kB / 403.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.1065, allocations: 1.514 MB / 405.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006776/0.1072, allocations: 402.8 kB / 405.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008694/0.1081, allocations: 0.5798 MB / 406.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007536/0.1088, allocations: 0.6144 MB / 406.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.109, allocations: 140 kB / 407 MB, free: 9.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000366/0.1094, allocations: 180 kB / 407.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.1096, allocations: 290.9 kB / 407.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006491/0.1102, allocations: 0.6726 MB / 408.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001968/0.1122, allocations: 1.759 MB / 409.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1122, allocations: 0 / 409.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1122, allocations: 0 / 409.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.925e-05/0.1122, allocations: 0 / 409.9 MB, free: 6.133 MB / 334.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.002714/0.115, allocations: 1.51 MB / 411.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.115, allocations: 8.031 kB / 411.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/0.1152, allocations: 156.4 kB / 411.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006674/0.1158, allocations: 196 kB / 411.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.1171, allocations: 0.7625 MB / 412.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.823e-05/0.1172, allocations: 70 kB / 412.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.1174, allocations: 107.9 kB / 412.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.119, allocations: 0.9464 MB / 413.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/0.119, allocations: 4 kB / 413.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.238e-05/0.1191, allocations: 36 kB / 413.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.1191, allocations: 28 kB / 413.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.1204, allocations: 0.6442 MB / 414.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005674/0.1261, allocations: 3.943 MB / 418.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007455/0.1268, allocations: 411.9 kB / 418.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006301/0.1275, allocations: 268.6 kB / 418.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.1275, allocations: 19.92 kB / 419 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.1275, allocations: 34.56 kB / 419 MB, free: 12.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.194e-06/0.1275, allocations: 0 / 419 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003418/0.131, allocations: 1.57 MB / 420.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.131, allocations: 81.11 kB / 420.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001242/0.1323, allocations: 0.8372 MB / 421.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.1323, allocations: 33.7 kB / 421.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004724/0.1328, allocations: 0.5775 MB / 422.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.1329, allocations: 170.6 kB / 422.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.1332, allocations: 130.5 kB / 422.4 MB, free: 9.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1333, allocations: 341.9 kB / 422.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003715/0.1337, allocations: 173.9 kB / 422.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/0.1343, allocations: 471.6 kB / 423.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.1353, allocations: 0.6874 MB / 424 MB, free: 7.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1353, allocations: 0 / 424 MB, free: 7.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001462/0.1367, allocations: 0.787 MB / 424.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.1368, allocations: 12 kB / 424.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.1368, allocations: 8 kB / 424.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003196/0.1371, allocations: 85.81 kB / 424.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005262/0.1376, allocations: 159.7 kB / 425.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/0.1406, allocations: 3.146 MB / 428.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008134/0.1414, allocations: 40 kB / 428.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-05/0.1414, allocations: 39.92 kB / 428.3 MB, free: 2.594 MB / 350.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.000581/0.142, allocations: 265.5 kB / 428.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.1422, allocations: 91.44 kB / 428.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.1433, allocations: 0.4951 MB / 429.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1433, allocations: 4 kB / 429.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1433, allocations: 4 kB / 429.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1433, allocations: 0 / 429.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/0.1458, allocations: 1.474 MB / 430.6 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.1458, allocations: 0 / 430.6 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.1461, allocations: 75.89 kB / 430.7 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002453/0.1464, allocations: 73.89 kB / 430.8 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.104e-05/0.1464, allocations: 12.17 kB / 430.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.1492, allocations: 3.126 MB / 433.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.1492, allocations: 4.031 kB / 433.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.1508, allocations: 0.7987 MB / 434.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003705/0.1512, allocations: 208.5 kB / 434.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.767e-05/0.1513, allocations: 11.94 kB / 434.9 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.1517, allocations: 31.97 kB / 435 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-05/0.1518, allocations: 39.89 kB / 435 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.1519, allocations: 12 kB / 435 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008249/0.1527, allocations: 0.5732 MB / 435.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1527, allocations: 0 / 435.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008581/0.1535, allocations: 211.9 kB / 435.8 MB, free: 10.65 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.001795/0.1553, allocations: 1.37 MB / 437.2 MB, free: 9.227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.1567, allocations: 0.6817 MB / 437.8 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1567, allocations: 0 / 437.8 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007006/0.1574, allocations: 451.2 kB / 438.3 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.1585, allocations: 235.3 kB / 438.5 MB, free: 7.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.1696, allocations: 7.476 MB / 446 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007869/0.1704, allocations: 1.009 MB / 447 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004223/0.1708, allocations: 111.3 kB / 447.1 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004874/0.1713, allocations: 391.3 kB / 447.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1713, allocations: 0 / 447.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2208/0.3921, allocations: 19.59 MB / 467.1 MB, free: 66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.65, allocations: 5.781 kB / 467.1 MB, free: 66 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.682782956995652]