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.001274/0.001274, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001422/0.001422, allocations: 206.3 kB / 23.73 MB, free: 4.523 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.378/1.378, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001502/0.001502, allocations: 51.86 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2358, allocations: 53.36 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009071/0.2449, allocations: 7.28 MB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004609/0.2495, allocations: 2.568 MB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007132/0.2502, allocations: 27.88 kB / 441 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001401/0.2516, allocations: 0.5208 MB / 441.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.2528, allocations: 0.5079 MB / 442 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.2533, allocations: 275.6 kB / 442.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.2549, allocations: 1.508 MB / 443.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006476/0.2556, allocations: 405.2 kB / 444.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007781/0.2564, allocations: 0.5837 MB / 444.7 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007425/0.2571, allocations: 0.6105 MB / 445.4 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.2573, allocations: 140 kB / 445.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003376/0.2576, allocations: 192 kB / 445.7 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.2579, allocations: 282.9 kB / 446 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005995/0.2585, allocations: 0.556 MB / 446.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.2604, allocations: 1.774 MB / 448.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.2604, allocations: 0 / 448.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2604, allocations: 0 / 448.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.2605, allocations: 0 / 448.3 MB, free: 5.332 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.002492/0.2629, allocations: 1.438 MB / 449.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.263, allocations: 12.03 kB / 449.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000174/0.2632, allocations: 160.3 kB / 449.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007418/0.2639, allocations: 200 kB / 450.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.2652, allocations: 0.7007 MB / 450.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.53e-05/0.2653, allocations: 66 kB / 450.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.2654, allocations: 104 kB / 451 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.2671, allocations: 1.047 MB / 452 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/0.2671, allocations: 8 kB / 452 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.074e-05/0.2672, allocations: 36 kB / 452 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.2672, allocations: 28 kB / 452.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.2685, allocations: 0.6442 MB / 452.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005086/0.2735, allocations: 3.528 MB / 456.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.2742, allocations: 346.6 kB / 456.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005896/0.2748, allocations: 263.9 kB / 456.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.2749, allocations: 8 kB / 456.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.2749, allocations: 34.56 kB / 456.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.274e-06/0.2749, allocations: 0 / 456.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.002912/0.2778, allocations: 1.338 MB / 458.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.2779, allocations: 81.11 kB / 458.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.279, allocations: 0.8605 MB / 459.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.279, allocations: 33.7 kB / 459.2 MB, free: 10 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000431/0.2795, allocations: 0.5853 MB / 459.8 MB, free: 9.406 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.2796, allocations: 170.6 kB / 459.9 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.2798, allocations: 126.6 kB / 460.1 MB, free: 9.109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2799, allocations: 338 kB / 460.4 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/0.2803, allocations: 177.9 kB / 460.6 MB, free: 8.598 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005868/0.2809, allocations: 497.2 kB / 461.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009548/0.2818, allocations: 0.6798 MB / 461.7 MB, free: 7.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2818, allocations: 4 kB / 461.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001372/0.2832, allocations: 0.7911 MB / 462.5 MB, free: 6.352 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.2832, allocations: 8 kB / 462.5 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.2832, allocations: 8 kB / 462.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.2835, allocations: 81.88 kB / 462.6 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005197/0.284, allocations: 159.7 kB / 462.8 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.2867, allocations: 2.927 MB / 465.7 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006708/0.2873, allocations: 39.94 kB / 465.8 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.2874, allocations: 32 kB / 465.8 MB, free: 2.867 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.0004436/0.2878, allocations: 273.4 kB / 466.1 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.288, allocations: 91.44 kB / 466.1 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.289, allocations: 0.5032 MB / 466.6 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.289, allocations: 4 kB / 466.6 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.289, allocations: 4 kB / 466.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.289, allocations: 3.984 kB / 466.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.2912, allocations: 1.334 MB / 468 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.2912, allocations: 224 / 468 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000341/0.2915, allocations: 83.83 kB / 468.1 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002246/0.2917, allocations: 69.67 kB / 468.1 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.2918, allocations: 12 kB / 468.2 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002544/0.2943, allocations: 2.915 MB / 471.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2943, allocations: 0 / 471.1 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.2957, allocations: 0.8058 MB / 471.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/0.2961, allocations: 127.4 kB / 472 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.2962, allocations: 15.92 kB / 472 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004467/0.2966, allocations: 31.98 kB / 472 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.142e-05/0.2967, allocations: 31.94 kB / 472.1 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.2967, allocations: 16 kB / 472.1 MB, free: 12.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007989/0.2975, allocations: 0.5732 MB / 472.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2975, allocations: 3.938 kB / 472.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000905/0.2984, allocations: 211.9 kB / 472.9 MB, free: 11.39 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.00179/0.3002, allocations: 1.374 MB / 474.2 MB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.3015, allocations: 0.6779 MB / 474.9 MB, free: 9.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3015, allocations: 0 / 474.9 MB, free: 9.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.3021, allocations: 454 kB / 475.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.3032, allocations: 236.8 kB / 475.6 MB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/0.3136, allocations: 7.476 MB / 483.1 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.314, allocations: 430.4 kB / 483.5 MB, free: 208 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003931/0.3144, allocations: 107.3 kB / 483.6 MB, free: 96 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005032/0.3149, allocations: 395.4 kB / 484 MB, free: 15.7 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3149, allocations: 0 / 484 MB, free: 15.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08597/0.4009, allocations: 21.53 MB / 0.4937 GB, free: 10.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.95, allocations: 7.938 kB / 0.4937 GB, free: 10.54 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 15.596255297015887]