Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,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_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,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_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007619/0.0007619, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.0008399/0.0008399, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.127/1.127, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002086/0.0002085, allocations: 12.69 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07098/0.0712, allocations: 50.4 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006622/0.07784, allocations: 7.564 MB / 360.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003437/0.0813, allocations: 2.579 MB / 362.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005655/0.08189, allocations: 23.94 kB / 362.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.08302, allocations: 0.4981 MB / 363.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009053/0.08393, allocations: 401.1 kB / 363.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.08431, allocations: 231.7 kB / 363.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001066/0.08539, allocations: 1.399 MB / 365.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005722/0.08597, allocations: 0.4966 MB / 365.7 MB, free: 6.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004189/0.08639, allocations: 469.8 kB / 366.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004458/0.08685, allocations: 0.5052 MB / 366.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.062e-05/0.08694, allocations: 68 kB / 366.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002087/0.08716, allocations: 103.9 kB / 366.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.0873, allocations: 199 kB / 367 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004283/0.08774, allocations: 0.604 MB / 367.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009543/0.0887, allocations: 1.355 MB / 369 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.08871, allocations: 0 / 369 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.08872, allocations: 0 / 369 MB, free: 3.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.08873, allocations: 0 / 369 MB, free: 3.152 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001673/0.09041, allocations: 1.258 MB / 370.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.802e-05/0.09044, allocations: 8.031 kB / 370.2 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005528/0.091, allocations: 195.3 kB / 370.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008699/0.09188, allocations: 0.7262 MB / 371.1 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.576e-05/0.09194, allocations: 70 kB / 371.2 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.09206, allocations: 107.9 kB / 371.3 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1251/0.2172, allocations: 0.9297 MB / 372.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.766e-05/0.2173, allocations: 5.906 kB / 372.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.676e-05/0.2174, allocations: 40.34 kB / 372.3 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.2174, allocations: 23.62 kB / 372.3 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.2187, allocations: 0.6436 MB / 373 MB, free: 24.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/0.2235, allocations: 3.945 MB / 376.9 MB, free: 21.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/0.224, allocations: 446.1 kB / 377.3 MB, free: 21.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004578/0.2245, allocations: 268.2 kB / 377.6 MB, free: 21.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.2245, allocations: 6.516 kB / 377.6 MB, free: 21.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.2246, allocations: 37.64 kB / 377.6 MB, free: 21.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.435e-06/0.2246, allocations: 1.375 kB / 377.6 MB, free: 21.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002219/0.2268, allocations: 1.425 MB / 379.1 MB, free: 20.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.2268, allocations: 81.58 kB / 379.1 MB, free: 20.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009739/0.2278, allocations: 0.8233 MB / 380 MB, free: 20.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.2278, allocations: 31.98 kB / 380 MB, free: 20.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/0.2281, allocations: 0.5598 MB / 380.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.99e-05/0.2282, allocations: 160.9 kB / 380.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.441e-05/0.2283, allocations: 62.38 kB / 380.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.2283, allocations: 332.8 kB / 381.1 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/0.2286, allocations: 168.4 kB / 381.3 MB, free: 19.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/0.229, allocations: 467.7 kB / 381.7 MB, free: 18.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007031/0.2297, allocations: 0.6681 MB / 382.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.2297, allocations: 3.344 kB / 382.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001142/0.2309, allocations: 0.7829 MB / 383.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.2309, allocations: 8.75 kB / 383.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.2309, allocations: 10.28 kB / 383.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002226/0.2311, allocations: 80.36 kB / 383.3 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.2316, allocations: 153.2 kB / 383.4 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.233, allocations: 2.883 MB / 386.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.2335, allocations: 34.39 kB / 386.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.2336, allocations: 35.78 kB / 386.4 MB, free: 14.95 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 (84): * Single equations (assignments): 82 * 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.0002646/0.2339, allocations: 262.1 kB / 386.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.949e-05/0.234, allocations: 85.75 kB / 386.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007861/0.2347, allocations: 498.4 kB / 387.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.2348, allocations: 4.625 kB / 387.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2348, allocations: 0.9375 kB / 387.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.2348, allocations: 8.109 kB / 387.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.2366, allocations: 1.445 MB / 388.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.2366, allocations: 1.125 kB / 388.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002645/0.2369, allocations: 74.66 kB / 388.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001673/0.2371, allocations: 71.39 kB / 388.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.2371, allocations: 16.41 kB / 388.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.2385, allocations: 2.868 MB / 391.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2385, allocations: 2.781 kB / 391.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.2395, allocations: 0.7852 MB / 392.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.2397, allocations: 195.3 kB / 392.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.154e-05/0.2398, allocations: 16.97 kB / 392.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/0.2402, allocations: 31.55 kB / 392.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.502e-05/0.2403, allocations: 34.81 kB / 392.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.2403, allocations: 14.28 kB / 392.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006329/0.2409, allocations: 0.5637 MB / 393.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.241, allocations: 0 / 393.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000715/0.2417, allocations: 206 kB / 393.5 MB, free: 9.848 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 (38): * Single equations (assignments): 36 * 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.0001502/0.2418, allocations: 125.1 kB / 393.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009196/0.2428, allocations: 0.6906 MB / 394.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.2428, allocations: 1.156 kB / 394.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000494/0.2433, allocations: 452.2 kB / 394.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.2444, allocations: 202.7 kB / 395 MB, free: 8.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.2467, allocations: 2.264 MB / 397.2 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.247, allocations: 1.005 MB / 398.2 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.2472, allocations: 58.66 kB / 398.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2472, allocations: 1.781 kB / 398.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of Templates: time 0.01899/0.2662, allocations: 20.7 MB / 419 MB, free: 4.527 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches