Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001493, allocations: 117 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.001831/0.001831, allocations: 204.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.353/1.353, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 64.58 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08914, allocations: 50.52 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01138/0.1006, allocations: 11.77 MB / 370.7 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1673/0.2679, allocations: 3.248 MB / 373.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.2693, allocations: 37.16 kB / 374 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001676/0.2711, allocations: 0.6424 MB / 374.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002001/0.2731, allocations: 0.6768 MB / 375.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009681/0.2741, allocations: 402.8 kB / 375.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002746/0.2768, allocations: 2.239 MB / 377.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001229/0.278, allocations: 0.9993 MB / 378.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.2794, allocations: 0.8386 MB / 379.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.2805, allocations: 0.914 MB / 380.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002508/0.2808, allocations: 216.8 kB / 380.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004847/0.2813, allocations: 262.5 kB / 381.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.2816, allocations: 426.3 kB / 381.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008365/0.2824, allocations: 1.015 MB / 382.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002691/0.2851, allocations: 2.688 MB / 385.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.2852, allocations: 0 / 385.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2852, allocations: 0 / 385.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.512e-05/0.2852, allocations: 1.094 kB / 385.2 MB, free: 7.48 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003321/0.2885, allocations: 2.064 MB / 387.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2886, allocations: 13.34 kB / 387.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007804/0.2894, allocations: 251.5 kB / 387.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.2909, allocations: 1.04 MB / 388.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.466e-05/0.291, allocations: 114.8 kB / 388.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001944/0.2912, allocations: 161.9 kB / 388.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.2933, allocations: 1.49 MB / 390.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.2934, allocations: 12.19 kB / 390.4 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.2935, allocations: 66.22 kB / 390.4 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-05/0.2935, allocations: 38.56 kB / 390.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001627/0.2952, allocations: 0.9678 MB / 391.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006344/0.3015, allocations: 6.522 MB / 398 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000765/0.3023, allocations: 395.9 kB / 398.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004083/0.3027, allocations: 220.3 kB / 398.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-05/0.3028, allocations: 9.531 kB / 398.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004892/0.3033, allocations: 267.8 kB / 398.8 MB, free: 13.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.923e-06/0.3033, allocations: 1.5 kB / 398.9 MB, free: 13.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003087/0.3064, allocations: 1.77 MB / 400.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/0.3065, allocations: 161.9 kB / 400.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/0.3081, allocations: 1.278 MB / 402.1 MB, free: 11.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.3081, allocations: 34.73 kB / 402.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000573/0.3087, allocations: 0.8692 MB / 403 MB, free: 10.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.3088, allocations: 205.4 kB / 403.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002454/0.3091, allocations: 223.1 kB / 403.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3092, allocations: 350 kB / 403.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004104/0.3096, allocations: 238.4 kB / 404 MB, free: 10.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007256/0.3104, allocations: 0.8024 MB / 404.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.3115, allocations: 1.113 MB / 405.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.3115, allocations: 7.625 kB / 405.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001697/0.3132, allocations: 1.171 MB / 407 MB, free: 7.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.3133, allocations: 44.16 kB / 407.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.3133, allocations: 19.62 kB / 407.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002259/0.3136, allocations: 71.08 kB / 407.2 MB, free: 7.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007471/0.3143, allocations: 263.4 kB / 407.4 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/0.3161, allocations: 2.773 MB / 410.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009041/0.317, allocations: 68.05 kB / 410.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.837e-05/0.3171, allocations: 59.98 kB / 410.3 MB, free: 4.176 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005149/0.3176, allocations: 365.3 kB / 410.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.3178, allocations: 138.3 kB / 410.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009965/0.3188, allocations: 0.5528 MB / 411.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.3188, allocations: 4 kB / 411.4 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3188, allocations: 4 kB / 411.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3188, allocations: 3.984 kB / 411.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00257/0.3214, allocations: 1.863 MB / 413.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/0.3214, allocations: 4 kB / 413.3 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004183/0.3219, allocations: 107.9 kB / 413.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001504/0.322, allocations: 54.11 kB / 413.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/0.3221, allocations: 19.94 kB / 413.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.3238, allocations: 2.738 MB / 416.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.3239, allocations: 7.938 kB / 416.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.3252, allocations: 0.9219 MB / 417.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004328/0.3257, allocations: 263.3 kB / 417.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.3258, allocations: 20 kB / 417.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005205/0.3264, allocations: 31.97 kB / 417.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3265, allocations: 55.81 kB / 417.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.3265, allocations: 20.12 kB / 417.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001119/0.3276, allocations: 0.8461 MB / 418.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3276, allocations: 0 / 418.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001183/0.3288, allocations: 304 kB / 418.6 MB, free: 11.37 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0002759/0.3291, allocations: 136.4 kB / 418.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.3308, allocations: 0.9376 MB / 419.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3308, allocations: 4.25 kB / 419.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006885/0.3315, allocations: 461.1 kB / 420.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.3331, allocations: 337.5 kB / 420.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004072/0.3372, allocations: 2.497 MB / 423 MB, free: 6.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007317/0.338, allocations: 1.182 MB / 424.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005585/0.3385, allocations: 167.3 kB / 424.3 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.3387, allocations: 87.44 kB / 424.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3387, allocations: 0 / 424.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of Templates: time 0.02616/0.3649, allocations: 14.98 MB / 439.4 MB, free: 6.617 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches