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.001117/0.001117, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.001116/0.001116, allocations: 153 kB / 23.93 MB, free: 0.6289 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.8568/0.8568, allocations: 173.4 MB / 200.4 MB, free: 9.43 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.653e-06/1.653e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.248e-05, allocations: 6.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006095/0.006117, allocations: 7.261 MB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003091/0.009208, allocations: 2.517 MB / 328.2 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004607/0.009669, allocations: 31.81 kB / 328.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009908/0.01066, allocations: 0.5362 MB / 328.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006424/0.0113, allocations: 0.5272 MB / 329.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.01162, allocations: 255.6 kB / 329.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.01263, allocations: 1.567 MB / 331.1 MB, free: 9.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004223/0.01305, allocations: 379.2 kB / 331.5 MB, free: 9.199 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006439/0.0137, allocations: 0.8652 MB / 332.4 MB, free: 8.332 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003855/0.01408, allocations: 454.5 kB / 332.8 MB, free: 7.887 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.01419, allocations: 140 kB / 332.9 MB, free: 7.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.01438, allocations: 176 kB / 333.1 MB, free: 7.578 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.01452, allocations: 294.8 kB / 333.4 MB, free: 7.289 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.01481, allocations: 462.9 kB / 333.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.01592, allocations: 1.756 MB / 335.6 MB, free: 5.074 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.01593, allocations: 0 / 335.6 MB, free: 5.074 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.01593, allocations: 0 / 335.6 MB, free: 5.074 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.01594, allocations: 4 kB / 335.6 MB, free: 5.07 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.001499/0.01744, allocations: 1.426 MB / 337 MB, free: 3.609 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.01748, allocations: 8.922 kB / 337 MB, free: 3.602 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.0176, allocations: 152.4 kB / 337.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003487/0.01795, allocations: 200 kB / 337.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000824/0.01877, allocations: 0.6968 MB / 338.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.471e-05/0.01882, allocations: 74 kB / 338.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.01891, allocations: 96 kB / 338.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.01991, allocations: 1.047 MB / 339.3 MB, free: 1.262 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.01994, allocations: 7.953 kB / 339.3 MB, free: 1.254 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.234e-05/0.01999, allocations: 43.98 kB / 339.4 MB, free: 1.211 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.02, allocations: 24 kB / 339.4 MB, free: 1.188 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007857/0.02079, allocations: 0.648 MB / 340 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.02377, allocations: 3.509 MB / 343.5 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000467/0.02424, allocations: 358.1 kB / 343.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003675/0.02461, allocations: 261.3 kB / 344.1 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.02463, allocations: 4.688 kB / 344.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.02466, allocations: 42.56 kB / 344.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.02466, allocations: 0 / 344.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.00179/0.02645, allocations: 1.343 MB / 345.5 MB, free: 10.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.02649, allocations: 88.98 kB / 345.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000717/0.02721, allocations: 0.8604 MB / 346.5 MB, free: 9.789 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.02723, allocations: 33.7 kB / 346.5 MB, free: 9.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002712/0.0275, allocations: 0.5775 MB / 347.1 MB, free: 9.164 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.02759, allocations: 170.5 kB / 347.3 MB, free: 8.996 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.02771, allocations: 130.6 kB / 347.4 MB, free: 8.863 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.626e-05/0.02781, allocations: 337.9 kB / 347.7 MB, free: 8.527 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.02802, allocations: 173.9 kB / 347.9 MB, free: 8.355 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003512/0.02838, allocations: 0.4895 MB / 348.4 MB, free: 7.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.02895, allocations: 0.676 MB / 349 MB, free: 6.914 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.02896, allocations: 4 kB / 349 MB, free: 6.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007854/0.02974, allocations: 0.7908 MB / 349.8 MB, free: 6.105 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.02976, allocations: 11.94 kB / 349.9 MB, free: 6.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.02977, allocations: 12 kB / 349.9 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.02994, allocations: 82.02 kB / 349.9 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.0302, allocations: 155.8 kB / 350.1 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.03164, allocations: 2.931 MB / 353 MB, free: 2.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.03189, allocations: 35.94 kB / 353.1 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.03192, allocations: 36 kB / 353.1 MB, free: 2.613 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.000265/0.03219, allocations: 261.7 kB / 353.4 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.852e-05/0.03227, allocations: 95.38 kB / 353.4 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006141/0.03288, allocations: 0.4912 MB / 353.9 MB, free: 1.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.03288, allocations: 12 kB / 353.9 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.03289, allocations: 0 / 353.9 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.03289, allocations: 0 / 353.9 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.03423, allocations: 1.338 MB / 355.3 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.03424, allocations: 0 / 355.3 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.0344, allocations: 75.89 kB / 355.4 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.03452, allocations: 69.89 kB / 355.4 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.03454, allocations: 16 kB / 355.4 MB, free: 164 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.03595, allocations: 2.912 MB / 358.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.03595, allocations: 3.938 kB / 358.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007809/0.03673, allocations: 0.7992 MB / 359.2 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.03689, allocations: 131.4 kB / 359.3 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.039e-05/0.03694, allocations: 12 kB / 359.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.03714, allocations: 23.98 kB / 359.3 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.03721, allocations: 43.81 kB / 359.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.03723, allocations: 19.98 kB / 359.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004913/0.03772, allocations: 0.5732 MB / 360 MB, free: 11.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03772, allocations: 0 / 360 MB, free: 11.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004714/0.03819, allocations: 204 kB / 360.2 MB, free: 11.17 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.001017/0.03921, allocations: 1.381 MB / 361.5 MB, free: 9.734 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006984/0.03991, allocations: 0.6754 MB / 362.2 MB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.03991, allocations: 0 / 362.2 MB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.04027, allocations: 449.4 kB / 362.7 MB, free: 8.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.04089, allocations: 231.2 kB / 362.9 MB, free: 8.352 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007598/0.04849, allocations: 7.417 MB / 370.3 MB, free: 500 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.0488, allocations: 430.4 kB / 370.7 MB, free: 36 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002908/0.04909, allocations: 107.3 kB / 370.8 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000309/0.0494, allocations: 388.4 kB / 371.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of SimCode: time 1.313e-06/0.0494, allocations: 0 / 371.2 MB, free: 15.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03262/0.08202, allocations: 21.32 MB / 392.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/7.798, allocations: 0 / 392.5 MB, free: 10.52 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.345915199257433]