Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 115 kB / 16.63 MB, free: 6.812 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.0012/0.001199, allocations: 186 kB / 17.55 MB, free: 5.934 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.328/1.328, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 46.58 kB / 300.1 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1079, allocations: 49.45 MB / 349.6 MB, free: 4.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008041/0.116, allocations: 7.109 MB / 356.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003667/0.1197, allocations: 2.322 MB / 359 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006169/0.1204, allocations: 19.94 kB / 359 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.1216, allocations: 453.7 kB / 359.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007687/0.1224, allocations: 333.6 kB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003562/0.1228, allocations: 179.8 kB / 360 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.1239, allocations: 1.195 MB / 361.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006605/0.1246, allocations: 0.4959 MB / 361.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.1251, allocations: 474.1 kB / 362.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004417/0.1255, allocations: 493.8 kB / 362.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.1257, allocations: 116 kB / 362.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002739/0.1259, allocations: 152 kB / 362.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.1261, allocations: 239 kB / 363.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004637/0.1266, allocations: 0.5365 MB / 363.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.1279, allocations: 1.413 MB / 365.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1279, allocations: 4 kB / 365.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1279, allocations: 0 / 365.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.1279, allocations: 3.938 kB / 365.1 MB, free: 4.926 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001943/0.1299, allocations: 1.245 MB / 366.3 MB, free: 3.629 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.1299, allocations: 23.88 kB / 366.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004807/0.1304, allocations: 139.6 kB / 366.5 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008542/0.1313, allocations: 0.6338 MB / 367.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.646e-05/0.1313, allocations: 58.38 kB / 367.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.1314, allocations: 88.27 kB / 367.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.1327, allocations: 0.7871 MB / 368 MB, free: 1.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.1328, allocations: 4 kB / 368 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.475e-05/0.1329, allocations: 32 kB / 368.1 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.1329, allocations: 20 kB / 368.1 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.1339, allocations: 0.5153 MB / 368.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1888/0.3227, allocations: 3.386 MB / 372 MB, free: 23.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005161/0.3232, allocations: 233.1 kB / 372.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.3235, allocations: 113.7 kB / 372.3 MB, free: 23.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.3236, allocations: 2.938 kB / 372.3 MB, free: 23.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.3236, allocations: 37.16 kB / 372.4 MB, free: 23.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.813e-06/0.3236, allocations: 0 / 372.4 MB, free: 23.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002133/0.3257, allocations: 1.039 MB / 373.4 MB, free: 22.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.3258, allocations: 87.42 kB / 373.5 MB, free: 22.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.3268, allocations: 0.7376 MB / 374.2 MB, free: 22.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.3269, allocations: 31.64 kB / 374.3 MB, free: 22.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003076/0.3272, allocations: 0.4906 MB / 374.7 MB, free: 22.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.424e-05/0.3272, allocations: 102.8 kB / 374.8 MB, free: 21.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.3274, allocations: 117.1 kB / 375 MB, free: 21.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3276, allocations: 376.7 kB / 375.3 MB, free: 21.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/0.3279, allocations: 129.2 kB / 375.5 MB, free: 21.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.3283, allocations: 421.6 kB / 375.9 MB, free: 21.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/0.3289, allocations: 0.5679 MB / 376.4 MB, free: 20.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.391e-06/0.3289, allocations: 6.438 kB / 376.4 MB, free: 20.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009922/0.3299, allocations: 0.6126 MB / 377.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.33, allocations: 13.05 kB / 377.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.33, allocations: 9.5 kB / 377.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000152/0.3301, allocations: 30.47 kB / 377.1 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004239/0.3306, allocations: 145.9 kB / 377.2 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007536/0.3313, allocations: 1.384 MB / 378.6 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004529/0.3318, allocations: 38.58 kB / 378.7 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.3318, allocations: 29.86 kB / 378.7 MB, free: 18.83 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002621/0.3321, allocations: 240.5 kB / 378.9 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.732e-05/0.3322, allocations: 69 kB / 379 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006864/0.3329, allocations: 334.9 kB / 379.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.3329, allocations: 2.75 kB / 379.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3329, allocations: 1.984 kB / 379.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.3329, allocations: 1.453 kB / 379.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001662/0.3346, allocations: 1.086 MB / 380.4 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.3346, allocations: 9.484 kB / 380.4 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.3349, allocations: 64.09 kB / 380.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-05/0.335, allocations: 23.67 kB / 380.5 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.335, allocations: 7.438 kB / 380.5 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006589/0.3357, allocations: 1.37 MB / 381.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3357, allocations: 6.438 kB / 381.9 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008213/0.3366, allocations: 0.5578 MB / 382.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.3368, allocations: 175.7 kB / 382.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.586e-05/0.3369, allocations: 11.47 kB / 382.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003286/0.3372, allocations: 18.98 kB / 382.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-05/0.3373, allocations: 29.3 kB / 382.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.3373, allocations: 7.562 kB / 382.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006804/0.338, allocations: 0.5014 MB / 383.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.338, allocations: 0 / 383.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007336/0.3388, allocations: 166.5 kB / 383.4 MB, free: 15.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0002037/0.339, allocations: 121.9 kB / 383.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008787/0.3399, allocations: 471.5 kB / 383.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.3399, allocations: 1.344 kB / 383.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003557/0.3402, allocations: 243.2 kB / 384.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009282/0.3412, allocations: 188.7 kB / 384.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.3435, allocations: 1.754 MB / 386.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.344, allocations: 0.9447 MB / 387.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003868/0.3444, allocations: 90.06 kB / 387.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.3445, allocations: 46.67 kB / 387.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.3445, allocations: 1.031 kB / 387.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Templates: time 0.01733/0.3618, allocations: 8.031 MB / 395.2 MB, free: 10.18 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches