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.001434/0.001433, allocations: 115.9 kB / 17.7 MB, free: 5.309 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.001509/0.001509, allocations: 191 kB / 18.63 MB, free: 4.379 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.33/1.33, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 44.39 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09724/0.09854, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008812/0.1074, allocations: 8.078 MB / 359.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00405/0.1115, allocations: 2.63 MB / 362.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000518/0.112, allocations: 23.94 kB / 362.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.1132, allocations: 0.5519 MB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008796/0.1141, allocations: 464.3 kB / 363.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004063/0.1145, allocations: 251.7 kB / 363.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.1158, allocations: 1.483 MB / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007323/0.1166, allocations: 0.5806 MB / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006047/0.1172, allocations: 0.5525 MB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000602/0.1178, allocations: 0.5988 MB / 366.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000144/0.118, allocations: 140 kB / 366.8 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002795/0.1183, allocations: 176 kB / 367 MB, free: 4.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.1185, allocations: 279 kB / 367.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005573/0.119, allocations: 0.657 MB / 367.9 MB, free: 3.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001395/0.1204, allocations: 1.725 MB / 369.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1204, allocations: 0 / 369.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1204, allocations: 0 / 369.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.1205, allocations: 4 kB / 369.7 MB, free: 1.43 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.1749/0.2954, allocations: 1.454 MB / 371.1 MB, free: 25.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.2955, allocations: 13.23 kB / 371.1 MB, free: 25.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.2965, allocations: 188.9 kB / 371.3 MB, free: 25.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001524/0.298, allocations: 0.7426 MB / 372.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.057e-05/0.2981, allocations: 75 kB / 372.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.2983, allocations: 96.78 kB / 372.2 MB, free: 25.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.3, allocations: 0.9285 MB / 373.2 MB, free: 24.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.19e-05/0.3001, allocations: 10.61 kB / 373.2 MB, free: 24.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.764e-05/0.3002, allocations: 44.75 kB / 373.2 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.999e-05/0.3002, allocations: 26.48 kB / 373.2 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.3017, allocations: 0.6302 MB / 373.9 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005601/0.3073, allocations: 3.876 MB / 377.8 MB, free: 21.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006847/0.308, allocations: 450.6 kB / 378.2 MB, free: 21.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005157/0.3085, allocations: 261.4 kB / 378.4 MB, free: 21.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/0.3086, allocations: 5.484 kB / 378.5 MB, free: 21.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.3086, allocations: 39.23 kB / 378.5 MB, free: 21.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.643e-06/0.3086, allocations: 0 / 378.5 MB, free: 21.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002496/0.3111, allocations: 1.39 MB / 379.9 MB, free: 20.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.3112, allocations: 83.58 kB / 380 MB, free: 20.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.3124, allocations: 0.8262 MB / 380.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.3124, allocations: 32.92 kB / 380.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003708/0.3128, allocations: 0.559 MB / 381.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.3129, allocations: 156.6 kB / 381.5 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.3131, allocations: 135 kB / 381.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.3131, allocations: 339.9 kB / 382 MB, free: 19.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003236/0.3135, allocations: 163.5 kB / 382.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004409/0.3139, allocations: 458.5 kB / 382.6 MB, free: 18.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007375/0.3147, allocations: 0.6617 MB / 383.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/0.3147, allocations: 2.156 kB / 383.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001324/0.316, allocations: 0.7676 MB / 384 MB, free: 17.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3161, allocations: 12.47 kB / 384 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.3161, allocations: 11.11 kB / 384.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002851/0.3164, allocations: 81.72 kB / 384.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.3169, allocations: 150.6 kB / 384.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002432/0.3193, allocations: 3.14 MB / 387.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006575/0.32, allocations: 36.61 kB / 387.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.3201, allocations: 34.56 kB / 387.5 MB, free: 14.6 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.0004348/0.3205, allocations: 259.9 kB / 387.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.3207, allocations: 92.97 kB / 387.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009565/0.3216, allocations: 488 kB / 388.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3217, allocations: 4.5 kB / 388.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3217, allocations: 2.062 kB / 388.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3217, allocations: 14.08 kB / 388.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002335/0.324, allocations: 1.431 MB / 389.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.321e-06/0.324, allocations: 9.797 kB / 389.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003156/0.3244, allocations: 71.25 kB / 389.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.3246, allocations: 79.44 kB / 389.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.3246, allocations: 13.03 kB / 389.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001815/0.3265, allocations: 3.112 MB / 393 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.3265, allocations: 2.688 kB / 393.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.3277, allocations: 0.7712 MB / 393.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002805/0.328, allocations: 196.9 kB / 394 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.647e-05/0.3281, allocations: 11.78 kB / 394 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003952/0.3285, allocations: 25.66 kB / 394.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.863e-05/0.3286, allocations: 37.41 kB / 394.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.3286, allocations: 14.06 kB / 394.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008177/0.3294, allocations: 0.5644 MB / 394.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3294, allocations: 0 / 394.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009547/0.3304, allocations: 200.6 kB / 394.9 MB, free: 9.246 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.0002348/0.3306, allocations: 134.2 kB / 395 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.3318, allocations: 0.69 MB / 395.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3318, allocations: 0.9688 kB / 395.7 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006192/0.3325, allocations: 439.5 kB / 396.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009881/0.3335, allocations: 222.3 kB / 396.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.3362, allocations: 1.708 MB / 398 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005406/0.3368, allocations: 1.006 MB / 399 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.3372, allocations: 102.1 kB / 399.1 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.3373, allocations: 63.55 kB / 399.2 MB, free: 6.293 MB / 302.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3373, allocations: 0 / 399.2 MB, free: 6.293 MB / 302.1 MB Notification: Performance of Templates: time 0.01879/0.3561, allocations: 10.51 MB / 409.7 MB, free: 13.53 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 -s cvode -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