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.0008843/0.0008843, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008265/0.0008265, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8914/0.8914, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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 1.543e-06/1.543e-06, allocations: 0 / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.026e-05/1.18e-05, allocations: 6.219 kB / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005601/0.005613, allocations: 7.245 MB / 325.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002848/0.008461, allocations: 2.517 MB / 328.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003306/0.008792, allocations: 31.81 kB / 328.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.009837, allocations: 0.5323 MB / 328.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006316/0.01047, allocations: 0.531 MB / 329.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.01076, allocations: 259.7 kB / 329.6 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009243/0.01169, allocations: 1.563 MB / 331.1 MB, free: 9.504 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004241/0.01211, allocations: 375.2 kB / 331.5 MB, free: 9.117 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006887/0.0128, allocations: 0.869 MB / 332.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.01316, allocations: 458.5 kB / 332.8 MB, free: 7.797 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.01327, allocations: 140 kB / 332.9 MB, free: 7.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.01345, allocations: 180 kB / 333.1 MB, free: 7.484 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.01359, allocations: 290.8 kB / 333.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002739/0.01386, allocations: 470.9 kB / 333.9 MB, free: 6.738 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.01507, allocations: 1.756 MB / 335.6 MB, free: 4.977 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.01507, allocations: 0 / 335.6 MB, free: 4.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.01507, allocations: 0 / 335.6 MB, free: 4.977 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.01508, allocations: 0 / 335.6 MB, free: 4.977 MB / 298.7 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.00146/0.01654, allocations: 1.43 MB / 337 MB, free: 3.512 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.01658, allocations: 8.922 kB / 337.1 MB, free: 3.504 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.0167, allocations: 148.4 kB / 337.2 MB, free: 3.352 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000352/0.01705, allocations: 196 kB / 337.4 MB, free: 3.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008165/0.01787, allocations: 0.7046 MB / 338.1 MB, free: 2.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.847e-05/0.01791, allocations: 70 kB / 338.2 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-05/0.018, allocations: 104 kB / 338.3 MB, free: 2.262 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.01903, allocations: 1.043 MB / 339.3 MB, free: 1.164 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.01906, allocations: 11.95 kB / 339.3 MB, free: 1.152 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.196e-05/0.01911, allocations: 36 kB / 339.4 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.01912, allocations: 28 kB / 339.4 MB, free: 1.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.02023, allocations: 0.6442 MB / 340 MB, free: 452 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003107/0.02334, allocations: 3.517 MB / 343.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004643/0.02381, allocations: 346.7 kB / 343.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.02418, allocations: 257.4 kB / 344.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.02421, allocations: 12.67 kB / 344.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.02423, allocations: 34.56 kB / 344.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.883e-06/0.02423, allocations: 0 / 344.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.001746/0.02598, allocations: 1.351 MB / 345.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.02602, allocations: 85.05 kB / 345.6 MB, free: 10.56 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009658/0.02699, allocations: 0.8565 MB / 346.5 MB, free: 9.699 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.02701, allocations: 33.7 kB / 346.5 MB, free: 9.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/0.02728, allocations: 0.5736 MB / 347.1 MB, free: 9.078 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.648e-05/0.02736, allocations: 170.5 kB / 347.2 MB, free: 8.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.02748, allocations: 138.6 kB / 347.4 MB, free: 8.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.981e-05/0.02756, allocations: 333.9 kB / 347.7 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.02778, allocations: 177.9 kB / 347.9 MB, free: 8.262 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.02812, allocations: 493.3 kB / 348.4 MB, free: 7.637 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005916/0.02871, allocations: 0.6876 MB / 349 MB, free: 6.816 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.02871, allocations: 4 kB / 349.1 MB, free: 6.812 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008225/0.02954, allocations: 0.787 MB / 349.8 MB, free: 6.012 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.02955, allocations: 8 kB / 349.8 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.02957, allocations: 12 kB / 349.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001819/0.02975, allocations: 85.92 kB / 349.9 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.03002, allocations: 155.7 kB / 350.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.03151, allocations: 2.931 MB / 353 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.03177, allocations: 35.94 kB / 353.1 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.0318, allocations: 32.09 kB / 353.1 MB, free: 2.523 MB / 314.7 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.0002424/0.03204, allocations: 257.6 kB / 353.3 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.07e-05/0.03213, allocations: 103.4 kB / 353.4 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005819/0.03271, allocations: 0.499 MB / 353.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.03271, allocations: 4 kB / 353.9 MB, free: 1.645 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.03271, allocations: 0 / 353.9 MB, free: 1.645 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.03272, allocations: 3.984 kB / 353.9 MB, free: 1.641 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.03403, allocations: 1.33 MB / 355.3 MB, free: 240 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.03403, allocations: 4.203 kB / 355.3 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.0342, allocations: 83.84 kB / 355.4 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001164/0.03432, allocations: 65.67 kB / 355.4 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.03434, allocations: 12 kB / 355.4 MB, free: 68 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/0.03569, allocations: 2.915 MB / 358.4 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.03569, allocations: 0 / 358.4 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007716/0.03647, allocations: 0.8032 MB / 359.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.03663, allocations: 131.4 kB / 359.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.401e-05/0.03668, allocations: 12 kB / 359.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.03691, allocations: 31.97 kB / 359.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.838e-05/0.03697, allocations: 35.88 kB / 359.4 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.03699, allocations: 16 kB / 359.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004922/0.03748, allocations: 0.5732 MB / 360 MB, free: 11.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03748, allocations: 0 / 360 MB, free: 11.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005094/0.03799, allocations: 208 kB / 360.2 MB, free: 11.07 MB / 330.7 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.001296/0.03929, allocations: 1.377 MB / 361.5 MB, free: 9.641 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007506/0.04004, allocations: 0.6746 MB / 362.2 MB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.04004, allocations: 0 / 362.2 MB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003768/0.04042, allocations: 446.3 kB / 362.6 MB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006513/0.04107, allocations: 227.3 kB / 362.9 MB, free: 8.262 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007907/0.04897, allocations: 7.435 MB / 370.3 MB, free: 392 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.0493, allocations: 430.4 kB / 370.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002798/0.04958, allocations: 103.3 kB / 370.8 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003225/0.0499, allocations: 388.4 kB / 371.2 MB, free: 15.44 MB / 346.7 MB Notification: Performance of SimCode: time 8.72e-07/0.0499, allocations: 0 / 371.2 MB, free: 15.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03871/0.08861, allocations: 21.32 MB / 392.5 MB, free: 10.42 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.585/7.674, allocations: 8.062 kB / 392.5 MB, free: 10.41 MB / 362.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/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: 9.77795668784529]