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.001905/0.001905, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002341/0.002341, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.33/2.33, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 53.28 kB / 300.6 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1959, allocations: 49.44 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01476/0.2107, allocations: 8.051 MB / 358.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007752/0.2186, allocations: 2.614 MB / 360.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001854/0.2205, allocations: 23.94 kB / 360.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002862/0.2235, allocations: 494.1 kB / 361.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003109/0.2266, allocations: 405.2 kB / 361.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.2278, allocations: 223.8 kB / 361.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00323/0.2311, allocations: 1.407 MB / 363.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.2326, allocations: 0.4928 MB / 363.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.2341, allocations: 0.49 MB / 364.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001256/0.2354, allocations: 0.5598 MB / 364.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002556/0.2357, allocations: 88 kB / 364.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005873/0.2363, allocations: 128 kB / 365 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003038/0.2366, allocations: 223 kB / 365.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001092/0.2377, allocations: 0.6179 MB / 365.8 MB, free: 4.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002273/0.24, allocations: 1.383 MB / 367.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.113e-05/0.24, allocations: 0 / 367.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2401, allocations: 0 / 367.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.204e-05/0.2401, allocations: 0 / 367.2 MB, free: 3.605 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.004654/0.2448, allocations: 1.453 MB / 368.7 MB, free: 2.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.822e-05/0.2449, allocations: 12.03 kB / 368.7 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/0.2461, allocations: 187.3 kB / 368.9 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002102/0.2482, allocations: 0.73 MB / 369.6 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.2484, allocations: 77.94 kB / 369.7 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002338/0.2486, allocations: 96 kB / 369.8 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3099/0.5585, allocations: 0.9347 MB / 370.7 MB, free: 25.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001678/0.5588, allocations: 3.75 kB / 370.7 MB, free: 25.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004153/0.5592, allocations: 43.84 kB / 370.8 MB, free: 25.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-05/0.5593, allocations: 23.72 kB / 370.8 MB, free: 25.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002545/0.5618, allocations: 0.632 MB / 371.4 MB, free: 25.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009055/0.5709, allocations: 3.918 MB / 375.3 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008115/0.5718, allocations: 445.1 kB / 375.8 MB, free: 23.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006263/0.5724, allocations: 266 kB / 376 MB, free: 22.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.495e-05/0.5725, allocations: 4.453 kB / 376 MB, free: 22.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.5725, allocations: 38.48 kB / 376.1 MB, free: 22.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.855e-06/0.5725, allocations: 1.422 kB / 376.1 MB, free: 22.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.003097/0.5756, allocations: 1.382 MB / 377.4 MB, free: 22.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.5757, allocations: 84.14 kB / 377.5 MB, free: 21.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.5771, allocations: 0.8303 MB / 378.4 MB, free: 21.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.5771, allocations: 36.95 kB / 378.4 MB, free: 21.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004035/0.5775, allocations: 0.5548 MB / 379 MB, free: 21.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.5776, allocations: 160.3 kB / 379.1 MB, free: 20.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002458/0.5779, allocations: 131.7 kB / 379.2 MB, free: 20.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.578, allocations: 338 kB / 379.6 MB, free: 20.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.5784, allocations: 163.3 kB / 379.7 MB, free: 20.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005199/0.5789, allocations: 463.9 kB / 380.2 MB, free: 20.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008523/0.5798, allocations: 0.6558 MB / 380.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.5798, allocations: 7.359 kB / 380.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001537/0.5813, allocations: 0.7621 MB / 381.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.5814, allocations: 12.5 kB / 381.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.931e-05/0.5814, allocations: 9.781 kB / 381.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004598/0.5819, allocations: 81.34 kB / 381.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009271/0.5829, allocations: 156.3 kB / 381.9 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003268/0.5861, allocations: 2.878 MB / 384.7 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.5876, allocations: 32.47 kB / 384.8 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.5878, allocations: 35.91 kB / 384.8 MB, free: 16.27 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.0008161/0.5886, allocations: 257 kB / 385.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003056/0.5889, allocations: 93.77 kB / 385.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.5906, allocations: 484.2 kB / 385.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.5906, allocations: 5.656 kB / 385.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.5906, allocations: 5.219 kB / 385.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.5906, allocations: 7.359 kB / 385.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004133/0.5948, allocations: 1.427 MB / 387.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.5948, allocations: 6.859 kB / 387.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005712/0.5954, allocations: 73.72 kB / 387.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004232/0.5959, allocations: 76.22 kB / 387.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.159e-05/0.5959, allocations: 12.69 kB / 387.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003011/0.599, allocations: 2.861 MB / 390.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.599, allocations: 2.094 kB / 390.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002019/0.601, allocations: 0.7726 MB / 390.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000467/0.6015, allocations: 195.9 kB / 391.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.6016, allocations: 16.11 kB / 391.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004824/0.6021, allocations: 28.02 kB / 391.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.6023, allocations: 38.11 kB / 391.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/0.6023, allocations: 15.09 kB / 391.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.6034, allocations: 0.56 MB / 391.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6034, allocations: 0 / 391.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001192/0.6046, allocations: 207 kB / 391.9 MB, free: 11.16 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.0002667/0.6048, allocations: 126.7 kB / 392 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.6063, allocations: 0.675 MB / 392.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.6063, allocations: 1.281 kB / 392.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007521/0.6071, allocations: 445.6 kB / 393.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.6084, allocations: 205.9 kB / 393.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/0.6126, allocations: 2.173 MB / 395.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.6134, allocations: 1.005 MB / 396.5 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003254/0.6137, allocations: 66.66 kB / 396.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of SimCode: time 1.904e-06/0.6137, allocations: 0 / 396.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of Templates: time 0.04286/0.6566, allocations: 20.83 MB / 417.4 MB, free: 5.93 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