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.001048/0.001048, 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.00113/0.00113, 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.364/1.364, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001275, allocations: 64.05 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09179/0.09309, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008908/0.102, allocations: 8.164 MB / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004723/0.1068, allocations: 2.738 MB / 369.8 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.1079, allocations: 27.94 kB / 369.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.1096, allocations: 0.5239 MB / 370.4 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001176/0.1108, allocations: 444.5 kB / 370.8 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006763/0.1115, allocations: 359.5 kB / 371.2 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1754/0.2869, allocations: 1.494 MB / 372.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00158/0.2885, allocations: 0.615 MB / 373.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.2898, allocations: 0.558 MB / 373.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.291, allocations: 0.6006 MB / 374.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005357/0.2916, allocations: 139.2 kB / 374.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008724/0.2925, allocations: 181.3 kB / 374.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003031/0.2928, allocations: 287.1 kB / 375 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008467/0.2936, allocations: 0.6675 MB / 375.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001996/0.2956, allocations: 1.722 MB / 377.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2957, allocations: 1.531 kB / 377.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2957, allocations: 4.188 kB / 377.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.102e-05/0.2957, allocations: 2 kB / 377.4 MB, free: 10.41 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.002415/0.2981, allocations: 1.503 MB / 378.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.2982, allocations: 10.53 kB / 378.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006073/0.2988, allocations: 188.6 kB / 379.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.3, allocations: 0.7909 MB / 379.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.669e-05/0.3001, allocations: 78.72 kB / 380 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.3002, allocations: 101.7 kB / 380.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.3018, allocations: 0.9706 MB / 381 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.275e-05/0.3018, allocations: 3.5 kB / 381.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.003e-05/0.3019, allocations: 36.56 kB / 381.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.3019, allocations: 24.41 kB / 381.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.3031, allocations: 0.6353 MB / 381.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00488/0.308, allocations: 4.087 MB / 385.8 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009253/0.3089, allocations: 426.4 kB / 386.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/0.3092, allocations: 164.4 kB / 386.4 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.151e-05/0.3093, allocations: 4.094 kB / 386.4 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.3093, allocations: 39.67 kB / 386.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.024e-06/0.3093, allocations: 0 / 386.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002229/0.3115, allocations: 1.318 MB / 387.8 MB, free: 4.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.3116, allocations: 136.7 kB / 387.9 MB, free: 4.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.3127, allocations: 0.8959 MB / 388.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.3127, allocations: 30.95 kB / 388.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003203/0.313, allocations: 0.5876 MB / 389.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.239e-05/0.3131, allocations: 152.2 kB / 389.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.3133, allocations: 139.6 kB / 389.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.3134, allocations: 337.2 kB / 390 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.3137, allocations: 176.2 kB / 390.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004437/0.3142, allocations: 499.7 kB / 390.7 MB, free: 2.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007397/0.3149, allocations: 0.6838 MB / 391.4 MB, free: 2.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3149, allocations: 6.188 kB / 391.4 MB, free: 2 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001137/0.3161, allocations: 0.7453 MB / 392.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3161, allocations: 13.75 kB / 392.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.3161, allocations: 10.94 kB / 392.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.3163, allocations: 39.84 kB / 392.2 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/0.3168, allocations: 166 kB / 392.4 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007336/0.3176, allocations: 1.381 MB / 393.7 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005809/0.3182, allocations: 40 kB / 393.8 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/0.3182, allocations: 32.75 kB / 393.8 MB, free: 296 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005169/0.3188, allocations: 360.1 kB / 394.2 MB, free: 76 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000511/0.3193, allocations: 484.7 kB / 394.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000812/0.3201, allocations: 0.6637 MB / 395.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.372e-06/0.3201, allocations: 3.312 kB / 395.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001138/0.3213, allocations: 0.7213 MB / 396 MB, free: 14.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.3213, allocations: 8.625 kB / 396 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3213, allocations: 11.62 kB / 396 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.909e-05/0.3214, allocations: 39.5 kB / 396.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005163/0.3219, allocations: 170.3 kB / 396.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009263/0.3229, allocations: 1.393 MB / 397.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/0.3234, allocations: 32.88 kB / 397.7 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.822e-05/0.3235, allocations: 38.25 kB / 397.7 MB, free: 13.32 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.0002143/0.3237, allocations: 236.2 kB / 397.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.3239, allocations: 93.88 kB / 398 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007991/0.3247, allocations: 438.9 kB / 398.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.3247, allocations: 4.156 kB / 398.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3247, allocations: 1.531 kB / 398.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3247, allocations: 0 / 398.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.3268, allocations: 1.384 MB / 399.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3268, allocations: 3.156 kB / 399.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.3272, allocations: 74.08 kB / 399.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.09e-05/0.3273, allocations: 25.33 kB / 399.9 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.3273, allocations: 12.52 kB / 400 MB, free: 11.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009041/0.3282, allocations: 1.367 MB / 401.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.3283, allocations: 6.812 kB / 401.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.3293, allocations: 0.7016 MB / 402 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002829/0.3296, allocations: 203.4 kB / 402.2 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.3297, allocations: 22.72 kB / 402.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004167/0.3301, allocations: 25.56 kB / 402.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.217e-05/0.3302, allocations: 29.41 kB / 402.3 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.3303, allocations: 13.59 kB / 402.3 MB, free: 9.871 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008043/0.3311, allocations: 0.6032 MB / 402.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3311, allocations: 0 / 402.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001191/0.3323, allocations: 355.4 kB / 403.3 MB, free: 9.48 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.0001988/0.3325, allocations: 125.7 kB / 403.4 MB, free: 9.379 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.3339, allocations: 0.9749 MB / 404.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.334, allocations: 3.156 kB / 404.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003758/0.3343, allocations: 292.5 kB / 404.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.3354, allocations: 242.8 kB / 404.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.3381, allocations: 1.789 MB / 406.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.3387, allocations: 1.023 MB / 407.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004614/0.3391, allocations: 127.1 kB / 407.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.3393, allocations: 59.44 kB / 407.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3393, allocations: 0 / 407.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of Templates: time 0.01966/0.359, allocations: 10.65 MB / 418.5 MB, free: 11.9 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 cvode -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