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.001183/0.001183, allocations: 109 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2325, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009133/0.2416, allocations: 8.17 MB / 418.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004824/0.2465, allocations: 2.723 MB / 420.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.2476, allocations: 27.94 kB / 420.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.2494, allocations: 0.5356 MB / 421.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001556/0.2509, allocations: 436.5 kB / 421.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.252, allocations: 363.4 kB / 422.2 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002105/0.2541, allocations: 1.499 MB / 423.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009485/0.255, allocations: 0.61 MB / 424.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008948/0.2559, allocations: 0.568 MB / 424.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000681/0.2566, allocations: 0.5987 MB / 425.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001721/0.2568, allocations: 144 kB / 425.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003391/0.2572, allocations: 179.9 kB / 425.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.2574, allocations: 290.9 kB / 426.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005444/0.2579, allocations: 0.6608 MB / 426.7 MB, free: 0.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.2596, allocations: 1.724 MB / 428.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2596, allocations: 0 / 428.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2596, allocations: 0 / 428.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.2596, allocations: 0 / 428.4 MB, free: 14.98 MB / 350.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.002361/0.262, allocations: 1.511 MB / 430 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.262, allocations: 15.95 kB / 430 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005986/0.2626, allocations: 183.2 kB / 430.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.2638, allocations: 0.7939 MB / 430.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.337e-05/0.2639, allocations: 73.94 kB / 431 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.264, allocations: 104 kB / 431.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.2656, allocations: 0.9584 MB / 432.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.2656, allocations: 7.906 kB / 432.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-05/0.2657, allocations: 40 kB / 432.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.2658, allocations: 27.98 kB / 432.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.2669, allocations: 0.6324 MB / 432.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005096/0.272, allocations: 4.088 MB / 436.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009766/0.273, allocations: 431.2 kB / 437.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.2733, allocations: 164.8 kB / 437.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.2734, allocations: 4 kB / 437.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.2734, allocations: 38.56 kB / 437.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.545e-06/0.2734, allocations: 0 / 437.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002337/0.2757, allocations: 1.319 MB / 438.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.2758, allocations: 140.5 kB / 439 MB, free: 3.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.2769, allocations: 0.8898 MB / 439.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.277, allocations: 33.7 kB / 439.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/0.2773, allocations: 0.5914 MB / 440.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.2774, allocations: 146 kB / 440.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.2776, allocations: 134.5 kB / 440.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2777, allocations: 333.9 kB / 441.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003189/0.2781, allocations: 176.8 kB / 441.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.2786, allocations: 498.5 kB / 441.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008235/0.2794, allocations: 0.6828 MB / 442.4 MB, free: 172 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.2794, allocations: 4 kB / 442.4 MB, free: 168 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001172/0.2806, allocations: 0.7506 MB / 443.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2806, allocations: 8 kB / 443.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.2806, allocations: 12 kB / 443.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001564/0.2808, allocations: 33.28 kB / 443.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005475/0.2814, allocations: 175.7 kB / 443.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000956/0.2823, allocations: 1.39 MB / 444.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005561/0.2829, allocations: 39.89 kB / 444.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.283, allocations: 36 kB / 444.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005579/0.2835, allocations: 350.1 kB / 445.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004525/0.284, allocations: 490.6 kB / 445.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007503/0.2847, allocations: 0.66 MB / 446.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.527e-06/0.2848, allocations: 0 / 446.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001081/0.2858, allocations: 0.7273 MB / 447.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2859, allocations: 8 kB / 447.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.2859, allocations: 15.94 kB / 447.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.126e-05/0.286, allocations: 32.84 kB / 447.1 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.2865, allocations: 175.6 kB / 447.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008645/0.2874, allocations: 1.375 MB / 448.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.2879, allocations: 44.05 kB / 448.7 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.288, allocations: 39.94 kB / 448.7 MB, free: 9.227 MB / 366.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.0002032/0.2882, allocations: 240 kB / 449 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.2883, allocations: 90.88 kB / 449.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008144/0.2891, allocations: 439.4 kB / 449.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.2891, allocations: 4 kB / 449.5 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.2892, allocations: 3.938 kB / 449.5 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2892, allocations: 3.938 kB / 449.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.2911, allocations: 1.372 MB / 450.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.2911, allocations: 0 / 450.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003605/0.2914, allocations: 75.89 kB / 451 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.116e-05/0.2915, allocations: 28.78 kB / 451 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.2916, allocations: 12 kB / 451 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008494/0.2924, allocations: 1.367 MB / 452.4 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.2924, allocations: 4.031 kB / 452.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.2935, allocations: 0.7066 MB / 453.1 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002537/0.2937, allocations: 207.9 kB / 453.3 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.2939, allocations: 12 kB / 453.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003975/0.2943, allocations: 23.98 kB / 453.3 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.316e-05/0.2943, allocations: 23.97 kB / 453.3 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.2944, allocations: 12 kB / 453.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007552/0.2951, allocations: 0.6054 MB / 453.9 MB, free: 3.711 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2951, allocations: 0 / 453.9 MB, free: 3.711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001097/0.2962, allocations: 355.9 kB / 454.3 MB, free: 3.363 MB / 366.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.0002102/0.2964, allocations: 135 kB / 454.4 MB, free: 3.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.298, allocations: 0.9688 MB / 455.4 MB, free: 2.227 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.298, allocations: 0 / 455.4 MB, free: 2.227 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000381/0.2984, allocations: 288.5 kB / 455.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.2995, allocations: 255.9 kB / 455.9 MB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.3024, allocations: 1.826 MB / 457.8 MB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005534/0.3029, allocations: 1.025 MB / 458.8 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.3031, allocations: 71.38 kB / 458.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3031, allocations: 0 / 458.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of Templates: time 0.02005/0.3232, allocations: 16.92 MB / 475.8 MB, free: 13.8 MB / 398.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.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