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.001598/0.001598, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001926, allocations: 63.69 kB / 307 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1058, allocations: 50.55 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01078/0.1166, allocations: 8.168 MB / 365.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005429/0.1221, allocations: 2.727 MB / 368.4 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.1233, allocations: 31.88 kB / 368.5 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.1249, allocations: 0.5316 MB / 369 MB, free: 2.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00124/0.1262, allocations: 436.4 kB / 369.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007714/0.127, allocations: 363.1 kB / 369.8 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.1289, allocations: 1.484 MB / 371.3 MB, free: 236 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1664/0.2953, allocations: 0.6103 MB / 371.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.2964, allocations: 0.5543 MB / 372.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007537/0.2972, allocations: 0.6075 MB / 373 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002427/0.2975, allocations: 139.5 kB / 373.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004687/0.2979, allocations: 175.7 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000223/0.2982, allocations: 287.7 kB / 373.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006995/0.2989, allocations: 0.6647 MB / 374.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002286/0.3012, allocations: 1.691 MB / 376 MB, free: 9.938 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3012, allocations: 3.312 kB / 376 MB, free: 9.938 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3012, allocations: 0 / 376 MB, free: 9.938 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.721e-05/0.3012, allocations: 0 / 376 MB, free: 9.938 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.002773/0.304, allocations: 1.513 MB / 377.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3041, allocations: 9.625 kB / 377.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000772/0.3049, allocations: 190.5 kB / 377.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.3061, allocations: 0.7696 MB / 378.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.284e-05/0.3062, allocations: 72.97 kB / 378.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.3064, allocations: 103.4 kB / 378.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.3079, allocations: 0.9626 MB / 379.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/0.308, allocations: 3.297 kB / 379.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.938e-05/0.3081, allocations: 40.16 kB / 379.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.636e-05/0.3081, allocations: 32.56 kB / 379.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.3093, allocations: 0.6379 MB / 380.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005437/0.3148, allocations: 4.114 MB / 384.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.3158, allocations: 432.2 kB / 384.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/0.3161, allocations: 164.1 kB / 385 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.3161, allocations: 7.938 kB / 385 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.3162, allocations: 33.36 kB / 385 MB, free: 5.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.813e-06/0.3162, allocations: 0 / 385 MB, free: 5.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002392/0.3186, allocations: 1.316 MB / 386.4 MB, free: 4.605 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.3186, allocations: 136.6 kB / 386.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.3199, allocations: 0.8945 MB / 387.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.32, allocations: 38.86 kB / 387.4 MB, free: 4.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/0.3203, allocations: 0.5903 MB / 388 MB, free: 3.535 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/0.3204, allocations: 147.9 kB / 388.2 MB, free: 3.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.3206, allocations: 138.8 kB / 388.3 MB, free: 3.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.62e-05/0.3207, allocations: 333.7 kB / 388.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.321, allocations: 171.8 kB / 388.8 MB, free: 2.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/0.3214, allocations: 0.4995 MB / 389.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007647/0.3222, allocations: 0.676 MB / 390 MB, free: 1.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3222, allocations: 4.844 kB / 390 MB, free: 1.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001168/0.3234, allocations: 0.7412 MB / 390.7 MB, free: 1.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3234, allocations: 17.12 kB / 390.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.3234, allocations: 10.94 kB / 390.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.3236, allocations: 40.77 kB / 390.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.3242, allocations: 171.4 kB / 390.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007609/0.3249, allocations: 1.387 MB / 392.3 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006688/0.3256, allocations: 39.77 kB / 392.4 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.3257, allocations: 37.31 kB / 392.4 MB, free: 192 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006765/0.3264, allocations: 361 kB / 392.8 MB, free: 0 / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007983/0.3272, allocations: 0.4905 MB / 393.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001084/0.3283, allocations: 0.6592 MB / 393.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.554e-06/0.3283, allocations: 6 kB / 393.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001406/0.3297, allocations: 0.7204 MB / 394.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3297, allocations: 9.969 kB / 394.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.3298, allocations: 10.09 kB / 394.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001148/0.3299, allocations: 35.45 kB / 394.7 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.3304, allocations: 172 kB / 394.9 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.3317, allocations: 1.393 MB / 396.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007496/0.3325, allocations: 34.42 kB / 396.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.127e-05/0.3325, allocations: 38.09 kB / 396.3 MB, free: 13.3 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.00034/0.3329, allocations: 235.1 kB / 396.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.333, allocations: 94.8 kB / 396.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009398/0.334, allocations: 437.4 kB / 397.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.334, allocations: 4.125 kB / 397.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.334, allocations: 1.375 kB / 397.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.334, allocations: 3.281 kB / 397.1 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/0.3364, allocations: 1.387 MB / 398.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3364, allocations: 1.594 kB / 398.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.3368, allocations: 73.3 kB / 398.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.179e-05/0.3369, allocations: 23.36 kB / 398.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.3369, allocations: 12.72 kB / 398.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.3381, allocations: 1.367 MB / 399.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.3382, allocations: 13.06 kB / 400 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.3394, allocations: 0.7124 MB / 400.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.3398, allocations: 199.5 kB / 400.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.3399, allocations: 17.2 kB / 400.9 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004185/0.3403, allocations: 23.3 kB / 400.9 MB, free: 9.965 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.3404, allocations: 32.81 kB / 400.9 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.3404, allocations: 10.09 kB / 400.9 MB, free: 9.945 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00098/0.3414, allocations: 0.6106 MB / 401.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3414, allocations: 0 / 401.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001408/0.3428, allocations: 344.6 kB / 401.9 MB, free: 9.559 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.0002146/0.3431, allocations: 132.5 kB / 402 MB, free: 9.453 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.345, allocations: 0.9863 MB / 403 MB, free: 8.949 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.345, allocations: 0 / 403 MB, free: 8.949 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004326/0.3454, allocations: 286.5 kB / 403.3 MB, free: 8.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.3467, allocations: 252.1 kB / 403.5 MB, free: 8.637 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/0.3497, allocations: 1.813 MB / 405.3 MB, free: 7.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007058/0.3504, allocations: 1.021 MB / 406.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005812/0.351, allocations: 126.7 kB / 406.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.3511, allocations: 61.84 kB / 406.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3511, allocations: 0 / 406.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of Templates: time 0.02171/0.3729, allocations: 10.64 MB / 417.2 MB, free: 12.37 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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