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.001318/0.001318, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002744/0.002744, allocations: 59.16 kB / 307.1 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.102, allocations: 50.54 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009926/0.112, allocations: 8.137 MB / 365.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00502/0.117, allocations: 2.696 MB / 368.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009704/0.118, allocations: 23.94 kB / 368.5 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.1195, allocations: 477.3 kB / 369 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001129/0.1207, allocations: 381.3 kB / 369.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007211/0.1214, allocations: 323.7 kB / 369.7 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001759/0.1232, allocations: 1.491 MB / 371.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008671/0.1241, allocations: 0.6087 MB / 371.8 MB, free: 188 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1471/0.2712, allocations: 0.5563 MB / 372.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007691/0.272, allocations: 0.6049 MB / 373 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002514/0.2722, allocations: 138.8 kB / 373.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004006/0.2726, allocations: 176.6 kB / 373.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.2729, allocations: 294.6 kB / 373.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005561/0.2734, allocations: 0.6685 MB / 374.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001602/0.275, allocations: 1.378 MB / 375.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.275, allocations: 0 / 375.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2751, allocations: 0 / 375.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.007e-05/0.2751, allocations: 3.156 kB / 375.6 MB, free: 10.39 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.00273/0.2778, allocations: 1.51 MB / 377.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2779, allocations: 11 kB / 377.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006289/0.2785, allocations: 188.4 kB / 377.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.2796, allocations: 0.7695 MB / 378.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.2797, allocations: 78.56 kB / 378.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.2798, allocations: 99.39 kB / 378.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.2814, allocations: 0.9606 MB / 379.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/0.2815, allocations: 10 kB / 379.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.963e-05/0.2816, allocations: 40.38 kB / 379.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.2816, allocations: 28.16 kB / 379.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.2827, allocations: 0.635 MB / 379.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005149/0.2879, allocations: 4.107 MB / 384 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009429/0.2889, allocations: 432.2 kB / 384.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002761/0.2892, allocations: 165.8 kB / 384.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.2892, allocations: 4.391 kB / 384.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.2892, allocations: 37 kB / 384.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.023e-06/0.2893, allocations: 1.281 kB / 384.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002379/0.2916, allocations: 1.314 MB / 386 MB, free: 5.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.2917, allocations: 140.3 kB / 386.1 MB, free: 5.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.2928, allocations: 0.8946 MB / 387 MB, free: 4.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.2929, allocations: 35.83 kB / 387 MB, free: 4.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.2932, allocations: 0.5901 MB / 387.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.799e-05/0.2933, allocations: 143.5 kB / 387.8 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.2934, allocations: 145.3 kB / 387.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.2935, allocations: 333.8 kB / 388.2 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/0.2938, allocations: 169.8 kB / 388.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.2942, allocations: 0.5008 MB / 388.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007087/0.2949, allocations: 0.6804 MB / 389.6 MB, free: 2.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.295, allocations: 2.75 kB / 389.6 MB, free: 2.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001187/0.2962, allocations: 0.7406 MB / 390.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.2962, allocations: 12.97 kB / 390.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.2962, allocations: 10.97 kB / 390.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001585/0.2964, allocations: 43.34 kB / 390.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005756/0.297, allocations: 165.9 kB / 390.6 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007779/0.2978, allocations: 1.388 MB / 391.9 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007037/0.2985, allocations: 39.5 kB / 392 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.883e-05/0.2985, allocations: 34.19 kB / 392 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000547/0.2991, allocations: 359.5 kB / 392.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003637/0.2995, allocations: 484.3 kB / 392.8 MB, free: 256 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007906/0.3003, allocations: 0.6647 MB / 393.5 MB, free: 15.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.334e-06/0.3003, allocations: 4.922 kB / 393.5 MB, free: 15.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001247/0.3015, allocations: 0.7275 MB / 394.2 MB, free: 15.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.3016, allocations: 17.12 kB / 394.3 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.3016, allocations: 9.719 kB / 394.3 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.953e-05/0.3017, allocations: 32.64 kB / 394.3 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.3022, allocations: 173.9 kB / 394.5 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.3033, allocations: 1.38 MB / 395.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007115/0.304, allocations: 37.64 kB / 395.9 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.96e-05/0.3041, allocations: 37.66 kB / 395.9 MB, free: 13.98 MB / 318.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 (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.0002543/0.3043, allocations: 237.7 kB / 396.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.3045, allocations: 91.38 kB / 396.2 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008726/0.3054, allocations: 441.6 kB / 396.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3054, allocations: 6.969 kB / 396.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3054, allocations: 0.9375 kB / 396.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3054, allocations: 3.047 kB / 396.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.3076, allocations: 1.39 MB / 398.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3077, allocations: 1.438 kB / 398.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.308, allocations: 70.66 kB / 398.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.3082, allocations: 26.34 kB / 398.2 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.3082, allocations: 12.12 kB / 398.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.3093, allocations: 1.363 MB / 399.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.3093, allocations: 12.75 kB / 399.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.3105, allocations: 0.7023 MB / 400.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003919/0.3109, allocations: 202.5 kB / 400.5 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.3111, allocations: 17.16 kB / 400.5 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.3115, allocations: 24.45 kB / 400.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.615e-05/0.3116, allocations: 33.77 kB / 400.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.3116, allocations: 13.16 kB / 400.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008991/0.3126, allocations: 0.6047 MB / 401.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.01e-07/0.3126, allocations: 0 / 401.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001351/0.3139, allocations: 350 kB / 401.5 MB, free: 10.2 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 (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.0002445/0.3142, allocations: 131.5 kB / 401.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.3159, allocations: 0.9834 MB / 402.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.3159, allocations: 0 / 402.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004179/0.3163, allocations: 285.6 kB / 402.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.3178, allocations: 252.3 kB / 403.1 MB, free: 9.297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003338/0.3211, allocations: 2.276 MB / 405.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006426/0.3218, allocations: 1.028 MB / 406.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001959/0.322, allocations: 63.89 kB / 406.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.322, allocations: 0 / 406.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of Templates: time 0.02341/0.3454, allocations: 16.81 MB / 423.3 MB, free: 6.777 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/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