Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008284/0.0008284, allocations: 95.91 kB / 17.01 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009255/0.0009256, allocations: 193.6 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003228, allocations: 8 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1114, allocations: 51.52 MB / 358.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009333/0.1208, allocations: 7.204 MB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00591/0.1268, allocations: 2.553 MB / 368.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.129, allocations: 23.94 kB / 368.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002603/0.1316, allocations: 449.3 kB / 368.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002387/0.134, allocations: 345.4 kB / 369.2 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.1353, allocations: 251.2 kB / 369.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002587/0.1379, allocations: 1.339 MB / 370.8 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.139, allocations: 448.4 kB / 371.2 MB, free: 1.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009418/0.1399, allocations: 449.9 kB / 371.7 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00099/0.1409, allocations: 0.4897 MB / 372.1 MB, free: 88 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003081/0.1412, allocations: 64 kB / 372.2 MB, free: 24 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1991/0.3403, allocations: 91.64 kB / 372.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002967/0.3407, allocations: 191.4 kB / 372.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005007/0.3412, allocations: 255.6 kB / 372.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002182/0.3434, allocations: 1.328 MB / 374.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3434, allocations: 0.5 kB / 374.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3434, allocations: 4.531 kB / 374.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.611e-05/0.3434, allocations: 0 / 374.1 MB, free: 10.56 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002252/0.3457, allocations: 1.315 MB / 375.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.3457, allocations: 8.312 kB / 375.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006324/0.3464, allocations: 192 kB / 375.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.3479, allocations: 0.7436 MB / 376.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.3481, allocations: 73.34 kB / 376.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002392/0.3483, allocations: 110.4 kB / 376.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.3501, allocations: 0.9575 MB / 377.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.3502, allocations: 9.891 kB / 377.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.892e-05/0.3503, allocations: 40.75 kB / 377.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.732e-05/0.3503, allocations: 23.38 kB / 377.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.3517, allocations: 0.6453 MB / 378.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005778/0.3575, allocations: 4.125 MB / 382.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000965/0.3585, allocations: 464.4 kB / 382.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.3588, allocations: 170.1 kB / 382.9 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.3588, allocations: 6.766 kB / 382.9 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.3589, allocations: 38.84 kB / 383 MB, free: 7.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.114e-06/0.3589, allocations: 0 / 383 MB, free: 7.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002359/0.3612, allocations: 1.354 MB / 384.3 MB, free: 6.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.3613, allocations: 135.7 kB / 384.4 MB, free: 6.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.3625, allocations: 0.8876 MB / 385.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.3625, allocations: 31.67 kB / 385.4 MB, free: 6.305 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.3629, allocations: 0.5849 MB / 386 MB, free: 6.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.118e-05/0.363, allocations: 149.6 kB / 386.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.363, allocations: 19.97 kB / 386.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.66e-05/0.3631, allocations: 334.2 kB / 386.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003296/0.3634, allocations: 165.8 kB / 386.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/0.3638, allocations: 0.5018 MB / 387.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.3643, allocations: 242.3 kB / 387.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.3643, allocations: 6.969 kB / 387.3 MB, free: 5.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001157/0.3654, allocations: 0.7441 MB / 388.1 MB, free: 5.074 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.3656, allocations: 401.8 kB / 388.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.3656, allocations: 10 kB / 388.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001533/0.3658, allocations: 39.73 kB / 388.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.3664, allocations: 175.1 kB / 388.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007252/0.3671, allocations: 1.282 MB / 390 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005862/0.3677, allocations: 52.77 kB / 390 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.3678, allocations: 35.56 kB / 390.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-06/0.3678, allocations: 4.344 kB / 390.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009133/0.3687, allocations: 0.6119 MB / 390.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.3687, allocations: 11.38 kB / 390.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.427e-05/0.3688, allocations: 42.95 kB / 390.7 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.3693, allocations: 165.1 kB / 390.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005938/0.3699, allocations: 1.291 MB / 392.2 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.3704, allocations: 35.72 kB / 392.2 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.3705, allocations: 32.28 kB / 392.3 MB, free: 2.035 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004439/0.3709, allocations: 343.8 kB / 392.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.3711, allocations: 95.17 kB / 392.7 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000772/0.3718, allocations: 450.1 kB / 393.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.3718, allocations: 3.781 kB / 393.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3719, allocations: 5.234 kB / 393.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3719, allocations: 0 / 393.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.374, allocations: 1.396 MB / 394.5 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.374, allocations: 6.562 kB / 394.5 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003647/0.3744, allocations: 76.97 kB / 394.6 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.277e-05/0.3745, allocations: 26.8 kB / 394.6 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.3745, allocations: 9.719 kB / 394.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008032/0.3753, allocations: 1.278 MB / 395.9 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.3753, allocations: 4.844 kB / 395.9 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.3765, allocations: 0.7222 MB / 396.7 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.3768, allocations: 206.6 kB / 396.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.377, allocations: 12.98 kB / 396.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.3774, allocations: 27.95 kB / 396.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/0.3774, allocations: 28.89 kB / 396.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.859e-05/0.3775, allocations: 13.88 kB / 396.9 MB, free: 14.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009251/0.3784, allocations: 0.598 MB / 397.5 MB, free: 14.4 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3784, allocations: 1.469 kB / 397.5 MB, free: 14.4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001353/0.3798, allocations: 350.4 kB / 397.9 MB, free: 14.37 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002201/0.38, allocations: 128 kB / 398 MB, free: 14.26 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.3817, allocations: 0.9731 MB / 399 MB, free: 13.78 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3817, allocations: 5.469 kB / 399 MB, free: 13.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.3822, allocations: 292.3 kB / 399.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.3834, allocations: 235.2 kB / 399.5 MB, free: 13.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/0.3869, allocations: 2.202 MB / 401.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005807/0.3875, allocations: 1.016 MB / 402.7 MB, free: 11.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005525/0.3881, allocations: 127 kB / 402.8 MB, free: 11.01 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.3882, allocations: 63.39 kB / 402.9 MB, free: 11 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3882, allocations: 0 / 402.9 MB, free: 11 MB / 318.1 MB Notification: Performance of Templates: time 0.01967/0.4079, allocations: 9.802 MB / 412.7 MB, free: 2.977 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches