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.001148/0.001148, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 59.5 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09265, allocations: 50.53 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009653/0.1023, allocations: 8.164 MB / 367.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005089/0.1075, allocations: 2.742 MB / 369.8 MB, free: 2.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.1086, allocations: 23.94 kB / 369.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.1101, allocations: 0.5356 MB / 370.4 MB, free: 1.852 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.1114, allocations: 432.5 kB / 370.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007904/0.1122, allocations: 358.8 kB / 371.2 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1657/0.2779, allocations: 1.494 MB / 372.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.2789, allocations: 0.6195 MB / 373.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008095/0.2798, allocations: 0.5562 MB / 373.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005995/0.2804, allocations: 0.6021 MB / 374.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001862/0.2806, allocations: 143.6 kB / 374.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003279/0.2809, allocations: 183.2 kB / 374.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001893/0.2811, allocations: 281.3 kB / 375 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005633/0.2817, allocations: 0.6669 MB / 375.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.2833, allocations: 1.72 MB / 377.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2833, allocations: 0.7031 kB / 377.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2834, allocations: 3.406 kB / 377.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.25e-05/0.2834, allocations: 0 / 377.4 MB, free: 10.42 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.002359/0.2857, allocations: 1.509 MB / 378.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2858, allocations: 9.219 kB / 378.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006026/0.2864, allocations: 191.9 kB / 379.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.2876, allocations: 0.7965 MB / 379.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.707e-05/0.2877, allocations: 72.91 kB / 380 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.2879, allocations: 103 kB / 380.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.2894, allocations: 0.9638 MB / 381 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.734e-05/0.2895, allocations: 6.109 kB / 381.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.957e-05/0.2895, allocations: 39.19 kB / 381.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.2896, allocations: 24.25 kB / 381.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.2907, allocations: 0.6394 MB / 381.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004983/0.2957, allocations: 4.079 MB / 385.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009799/0.2967, allocations: 427.2 kB / 386.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.297, allocations: 165.6 kB / 386.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.2971, allocations: 4.828 kB / 386.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.2971, allocations: 41.78 kB / 386.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.384e-06/0.2971, allocations: 1.906 kB / 386.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002409/0.2995, allocations: 1.31 MB / 387.8 MB, free: 4.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.2996, allocations: 141.8 kB / 387.9 MB, free: 4.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.3008, allocations: 0.8897 MB / 388.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.3008, allocations: 32.02 kB / 388.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003164/0.3012, allocations: 0.5902 MB / 389.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.004e-05/0.3013, allocations: 150.6 kB / 389.6 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.3014, allocations: 138.9 kB / 389.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.988e-05/0.3015, allocations: 340 kB / 390 MB, free: 3.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.3018, allocations: 176.5 kB / 390.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004131/0.3022, allocations: 498.3 kB / 390.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007152/0.303, allocations: 0.6851 MB / 391.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.303, allocations: 6.5 kB / 391.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001164/0.3042, allocations: 0.7446 MB / 392.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.3042, allocations: 12.97 kB / 392.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.3042, allocations: 11.03 kB / 392.2 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001643/0.3044, allocations: 34.42 kB / 392.2 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005927/0.305, allocations: 169.5 kB / 392.3 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007618/0.3058, allocations: 1.381 MB / 393.7 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006554/0.3064, allocations: 39.02 kB / 393.8 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/0.3065, allocations: 36.94 kB / 393.8 MB, free: 328 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006476/0.3071, allocations: 358.2 kB / 394.2 MB, free: 112 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005571/0.3077, allocations: 487.7 kB / 394.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000902/0.3086, allocations: 0.6668 MB / 395.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.813e-06/0.3086, allocations: 3.719 kB / 395.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001362/0.31, allocations: 0.7189 MB / 396 MB, free: 14.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.31, allocations: 10.53 kB / 396 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.3101, allocations: 11 kB / 396 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001205/0.3102, allocations: 38.38 kB / 396.1 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000558/0.3108, allocations: 167 kB / 396.2 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.3119, allocations: 1.39 MB / 397.6 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007217/0.3126, allocations: 33.16 kB / 397.7 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/0.3127, allocations: 37.66 kB / 397.7 MB, free: 13.36 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.0002733/0.313, allocations: 235.5 kB / 397.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.3131, allocations: 93.81 kB / 398 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009067/0.314, allocations: 437.9 kB / 398.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3141, allocations: 8.453 kB / 398.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3141, allocations: 1.312 kB / 398.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3141, allocations: 0 / 398.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.3166, allocations: 1.373 MB / 399.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.3167, allocations: 6.281 kB / 399.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000371/0.317, allocations: 78.98 kB / 399.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001058/0.3172, allocations: 23.66 kB / 399.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.3172, allocations: 12.88 kB / 400 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000969/0.3182, allocations: 1.368 MB / 401.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.3182, allocations: 9.594 kB / 401.3 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.3194, allocations: 0.7094 MB / 402 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003771/0.3197, allocations: 204.1 kB / 402.2 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.3199, allocations: 12.66 kB / 402.2 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004259/0.3203, allocations: 27.61 kB / 402.3 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.3204, allocations: 28.53 kB / 402.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.3204, allocations: 13.38 kB / 402.3 MB, free: 9.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009556/0.3214, allocations: 0.6093 MB / 402.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3214, allocations: 0 / 402.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001312/0.3227, allocations: 351.9 kB / 403.3 MB, free: 9.539 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.0002221/0.3229, allocations: 129.5 kB / 403.4 MB, free: 9.438 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.3245, allocations: 0.9782 MB / 404.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/0.3245, allocations: 0 / 404.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003918/0.3249, allocations: 285 kB / 404.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.326, allocations: 256.5 kB / 404.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.329, allocations: 1.783 MB / 406.7 MB, free: 7.508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006116/0.3296, allocations: 1.022 MB / 407.7 MB, free: 6.637 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005219/0.3301, allocations: 127.3 kB / 407.8 MB, free: 6.508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.3303, allocations: 63.44 kB / 407.9 MB, free: 6.445 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3303, allocations: 4 kB / 407.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of Templates: time 0.01994/0.3503, allocations: 10.64 MB / 418.5 MB, free: 11.95 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 -s gbode -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.0.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