Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001616, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.16 kB / 307 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0993/0.1012, allocations: 50.53 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01047/0.1117, allocations: 8.243 MB / 365.8 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004838/0.1166, allocations: 2.75 MB / 368.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000579/0.1172, allocations: 23.94 kB / 368.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.1186, allocations: 0.5597 MB / 369.1 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00104/0.1197, allocations: 480.2 kB / 369.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.1202, allocations: 267.6 kB / 369.8 MB, free: 1.688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001563/0.1218, allocations: 1.502 MB / 371.3 MB, free: 184 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1621/0.2839, allocations: 0.5817 MB / 371.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.285, allocations: 0.564 MB / 372.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006566/0.2856, allocations: 0.6062 MB / 373.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001885/0.2858, allocations: 140 kB / 373.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000381/0.2862, allocations: 186 kB / 373.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.2864, allocations: 286.1 kB / 373.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005299/0.287, allocations: 0.677 MB / 374.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002096/0.2891, allocations: 1.739 MB / 376.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.2891, allocations: 2.344 kB / 376.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.2891, allocations: 0 / 376.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.284e-05/0.2891, allocations: 0 / 376.1 MB, free: 10.01 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.002485/0.2916, allocations: 1.477 MB / 377.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2917, allocations: 10 kB / 377.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007374/0.2924, allocations: 200.9 kB / 377.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.2935, allocations: 0.7538 MB / 378.5 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.161e-05/0.2936, allocations: 73.03 kB / 378.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.2937, allocations: 99.61 kB / 378.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.2953, allocations: 0.9447 MB / 379.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.494e-05/0.2953, allocations: 6.375 kB / 379.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.986e-05/0.2954, allocations: 40.69 kB / 379.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.307e-05/0.2954, allocations: 24.75 kB / 379.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.2967, allocations: 0.6526 MB / 380.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/0.3014, allocations: 3.948 MB / 384.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006726/0.3021, allocations: 450 kB / 384.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005835/0.3027, allocations: 267.9 kB / 385 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.3028, allocations: 5.172 kB / 385 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.3028, allocations: 40.88 kB / 385.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.814e-06/0.3028, allocations: 0 / 385.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002812/0.3056, allocations: 1.53 MB / 386.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.3057, allocations: 91.78 kB / 386.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.3068, allocations: 0.8464 MB / 387.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.3068, allocations: 35.77 kB / 387.6 MB, free: 4.031 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/0.3071, allocations: 0.5668 MB / 388.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.236e-05/0.3072, allocations: 159 kB / 388.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.3074, allocations: 132.5 kB / 388.4 MB, free: 3.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.768e-05/0.3074, allocations: 332.9 kB / 388.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003437/0.3078, allocations: 182.6 kB / 388.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.3082, allocations: 472.5 kB / 389.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008173/0.3091, allocations: 0.6742 MB / 390.1 MB, free: 2.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.3091, allocations: 3.219 kB / 390.1 MB, free: 2.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001323/0.3104, allocations: 0.7914 MB / 390.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.3104, allocations: 12.78 kB / 390.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3105, allocations: 8.906 kB / 390.9 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.3107, allocations: 91.5 kB / 391 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004849/0.3112, allocations: 151.9 kB / 391.1 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/0.3134, allocations: 3.155 MB / 394.3 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/0.314, allocations: 36.92 kB / 394.3 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.776e-05/0.3141, allocations: 32.78 kB / 394.3 MB, free: 14.6 MB / 318.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.0004149/0.3145, allocations: 263.9 kB / 394.6 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.3147, allocations: 89.81 kB / 394.7 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009841/0.3157, allocations: 0.4965 MB / 395.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.3157, allocations: 13.2 kB / 395.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3157, allocations: 1.812 kB / 395.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3157, allocations: 4 kB / 395.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.318, allocations: 1.475 MB / 396.7 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.318, allocations: 1.312 kB / 396.7 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.3184, allocations: 76.94 kB / 396.8 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/0.3186, allocations: 75.48 kB / 396.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.3186, allocations: 12.47 kB / 396.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002638/0.3213, allocations: 3.132 MB / 400 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3213, allocations: 1.438 kB / 400 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.3227, allocations: 0.7974 MB / 400.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.323, allocations: 206.1 kB / 401 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.3231, allocations: 8.125 kB / 401 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/0.3236, allocations: 32.02 kB / 401 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.3237, allocations: 41.14 kB / 401.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.3237, allocations: 19.48 kB / 401.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008922/0.3246, allocations: 0.5738 MB / 401.6 MB, free: 8.996 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3246, allocations: 0 / 401.6 MB, free: 8.996 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001034/0.3257, allocations: 208.7 kB / 401.8 MB, free: 8.977 MB / 318.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.0002886/0.326, allocations: 127 kB / 402 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.3274, allocations: 0.7181 MB / 402.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/0.3274, allocations: 4 kB / 402.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006509/0.3281, allocations: 451.2 kB / 403.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.3292, allocations: 221 kB / 403.4 MB, free: 8.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002713/0.3319, allocations: 1.767 MB / 405.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006446/0.3325, allocations: 1.014 MB / 406.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004191/0.333, allocations: 108.2 kB / 406.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3331, allocations: 58.27 kB / 406.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3331, allocations: 0 / 406.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of Templates: time 0.02206/0.3552, allocations: 10.73 MB / 417 MB, free: 12.42 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches