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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 112.5 kB / 17.68 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 190.9 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 41.67 kB / 302 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1017, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01276/0.1145, allocations: 8.215 MB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00659/0.1211, allocations: 2.688 MB / 362.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/0.1224, allocations: 27.88 kB / 362.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.1246, allocations: 0.5519 MB / 363 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001885/0.1265, allocations: 484.2 kB / 363.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007598/0.1272, allocations: 259.7 kB / 363.7 MB, free: 7.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002083/0.1293, allocations: 1.506 MB / 365.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007444/0.1301, allocations: 0.5845 MB / 365.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006369/0.1307, allocations: 0.5603 MB / 366.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006353/0.1314, allocations: 0.6183 MB / 367 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.1316, allocations: 140 kB / 367.1 MB, free: 3.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000304/0.1319, allocations: 184 kB / 367.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.1321, allocations: 282.9 kB / 367.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005767/0.1327, allocations: 0.6726 MB / 368.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.1343, allocations: 1.752 MB / 370 MB, free: 1.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.1344, allocations: 0 / 370 MB, free: 1.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1344, allocations: 0 / 370 MB, free: 1.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.1344, allocations: 0 / 370 MB, free: 1.105 MB / 302.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.1478/0.2822, allocations: 1.476 MB / 371.5 MB, free: 25.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.2823, allocations: 13.77 kB / 371.5 MB, free: 25.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000718/0.283, allocations: 193.5 kB / 371.7 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.2842, allocations: 0.7588 MB / 372.4 MB, free: 24.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.366e-05/0.2843, allocations: 72.3 kB / 372.5 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.2844, allocations: 98.95 kB / 372.6 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.2859, allocations: 0.9431 MB / 373.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.286, allocations: 6.641 kB / 373.6 MB, free: 24.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.757e-05/0.286, allocations: 50.22 kB / 373.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.2861, allocations: 26.12 kB / 373.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.2873, allocations: 0.6472 MB / 374.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.2915, allocations: 3.905 MB / 378.2 MB, free: 21.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/0.2922, allocations: 450.3 kB / 378.6 MB, free: 21.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005165/0.2927, allocations: 268.7 kB / 378.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.2927, allocations: 4.094 kB / 378.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.2928, allocations: 38.97 kB / 378.9 MB, free: 21.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.973e-06/0.2928, allocations: 3.719 kB / 378.9 MB, free: 21.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002594/0.2954, allocations: 1.544 MB / 380.5 MB, free: 20.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.2954, allocations: 83.2 kB / 380.6 MB, free: 20.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.2964, allocations: 0.8418 MB / 381.4 MB, free: 19.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.2965, allocations: 32.14 kB / 381.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.2968, allocations: 0.5648 MB / 382 MB, free: 19.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.299e-05/0.2968, allocations: 161.9 kB / 382.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.297, allocations: 130.7 kB / 382.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.636e-05/0.2971, allocations: 334.2 kB / 382.6 MB, free: 18.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.2974, allocations: 182.6 kB / 382.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004343/0.2978, allocations: 466.4 kB / 383.2 MB, free: 18.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007561/0.2986, allocations: 0.6839 MB / 383.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.2986, allocations: 3.062 kB / 383.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001221/0.2998, allocations: 0.7889 MB / 384.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.2999, allocations: 10.22 kB / 384.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.2999, allocations: 9.625 kB / 384.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002441/0.3001, allocations: 81.11 kB / 384.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005136/0.3007, allocations: 158.9 kB / 385 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0018/0.3025, allocations: 3.144 MB / 388.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005759/0.3031, allocations: 38.25 kB / 388.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.3031, allocations: 37.42 kB / 388.2 MB, free: 14.21 MB / 302.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.0003256/0.3034, allocations: 258.1 kB / 388.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.3036, allocations: 90.17 kB / 388.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009035/0.3045, allocations: 0.5003 MB / 389 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3045, allocations: 4.094 kB / 389 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.3045, allocations: 6 kB / 389 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3045, allocations: 2.766 kB / 389 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.3065, allocations: 1.479 MB / 390.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3065, allocations: 2.391 kB / 390.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.3068, allocations: 74.47 kB / 390.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001846/0.307, allocations: 75.94 kB / 390.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.3071, allocations: 19.05 kB / 390.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.3086, allocations: 3.114 MB / 393.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3086, allocations: 1.531 kB / 393.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3097, allocations: 0.7997 MB / 394.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/0.3099, allocations: 204.5 kB / 394.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.31, allocations: 8.688 kB / 394.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000422/0.3105, allocations: 31.69 kB / 394.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.932e-05/0.3106, allocations: 36.3 kB / 394.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.3106, allocations: 18.44 kB / 394.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006482/0.3112, allocations: 0.5691 MB / 395.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.3112, allocations: 0 / 395.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000826/0.3121, allocations: 213.4 kB / 395.7 MB, free: 8.723 MB / 302.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.0001846/0.3123, allocations: 133.8 kB / 395.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009983/0.3133, allocations: 0.7049 MB / 396.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3133, allocations: 0 / 396.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005145/0.3138, allocations: 458.4 kB / 396.9 MB, free: 7.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009106/0.3147, allocations: 224.2 kB / 397.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.317, allocations: 1.741 MB / 398.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.3173, allocations: 1.011 MB / 399.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003311/0.3177, allocations: 111.9 kB / 400 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.3178, allocations: 60.44 kB / 400.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3178, allocations: 0 / 400.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of Templates: time 0.01659/0.3344, allocations: 10.69 MB / 410.8 MB, free: 12.45 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/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) Reference file matches