Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001143, allocations: 110.9 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009382/0.0009383, allocations: 55.23 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09092/0.09187, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01247/0.1044, allocations: 11.74 MB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005404/0.1098, allocations: 3.226 MB / 366.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000859/0.1107, allocations: 39.88 kB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.1123, allocations: 0.644 MB / 367.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.1137, allocations: 0.6743 MB / 367.8 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006959/0.1144, allocations: 399.5 kB / 368.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002028/0.1164, allocations: 2.25 MB / 370.5 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1611/0.2775, allocations: 0.9832 MB / 371.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001529/0.2791, allocations: 0.8333 MB / 372.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001654/0.2808, allocations: 0.9046 MB / 373.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006138/0.2814, allocations: 217.3 kB / 373.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009892/0.2824, allocations: 262.4 kB / 373.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004684/0.2829, allocations: 431.5 kB / 374.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001814/0.2847, allocations: 1.015 MB / 375.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003455/0.2882, allocations: 2.677 MB / 377.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2882, allocations: 5.625 kB / 377.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.2882, allocations: 0.75 kB / 377.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.825e-05/0.2883, allocations: 3.188 kB / 377.8 MB, free: 11.59 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.003657/0.2919, allocations: 2.065 MB / 379.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.292, allocations: 9.531 kB / 379.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008212/0.2928, allocations: 255.6 kB / 380.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001822/0.2946, allocations: 1.036 MB / 381.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.106e-05/0.2947, allocations: 116.2 kB / 381.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002303/0.295, allocations: 157.4 kB / 381.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.2973, allocations: 1.492 MB / 382.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/0.2974, allocations: 12.78 kB / 382.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001268/0.2975, allocations: 70.77 kB / 383 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-05/0.2975, allocations: 38.53 kB / 383 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.2994, allocations: 0.9764 MB / 384 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007749/0.3072, allocations: 6.512 MB / 390.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007454/0.3079, allocations: 410.8 kB / 390.9 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003804/0.3083, allocations: 224.4 kB / 391.1 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.3084, allocations: 4.906 kB / 391.1 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004193/0.3088, allocations: 275.8 kB / 391.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.164e-06/0.3088, allocations: 0 / 391.4 MB, free: 4.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003023/0.3119, allocations: 1.755 MB / 393.2 MB, free: 2.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.3119, allocations: 165.2 kB / 393.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.3134, allocations: 1.279 MB / 394.6 MB, free: 2.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.3135, allocations: 37.14 kB / 394.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004889/0.314, allocations: 0.8636 MB / 395.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.3141, allocations: 207.5 kB / 395.7 MB, free: 1.031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/0.3143, allocations: 225.4 kB / 395.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.659e-05/0.3144, allocations: 356.6 kB / 396.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/0.3148, allocations: 224.2 kB / 396.5 MB, free: 456 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007134/0.3155, allocations: 0.8074 MB / 397.3 MB, free: 15.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.3168, allocations: 1.118 MB / 398.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.3168, allocations: 5.5 kB / 398.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002/0.3188, allocations: 1.167 MB / 399.6 MB, free: 14.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.12e-05/0.3189, allocations: 44.28 kB / 399.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.579e-05/0.3189, allocations: 19.34 kB / 399.6 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002649/0.3192, allocations: 71.75 kB / 399.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000775/0.32, allocations: 268.7 kB / 400 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.3218, allocations: 2.776 MB / 402.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.323, allocations: 58.02 kB / 402.8 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.412e-05/0.3231, allocations: 69.17 kB / 402.9 MB, free: 11.02 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.0006851/0.3238, allocations: 365.8 kB / 403.2 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.324, allocations: 132.9 kB / 403.4 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.325, allocations: 0.5513 MB / 403.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3251, allocations: 6.5 kB / 403.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3251, allocations: 0 / 403.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.3251, allocations: 11.08 kB / 403.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.3279, allocations: 1.854 MB / 405.8 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.3279, allocations: 3.469 kB / 405.8 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004104/0.3283, allocations: 108 kB / 405.9 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001482/0.3285, allocations: 48.56 kB / 405.9 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.3285, allocations: 14.19 kB / 406 MB, free: 8.953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.3303, allocations: 2.743 MB / 408.7 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.3303, allocations: 2.906 kB / 408.7 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.3317, allocations: 0.9267 MB / 409.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005495/0.3322, allocations: 258.8 kB / 409.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.3324, allocations: 17.59 kB / 409.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005536/0.333, allocations: 30.69 kB / 409.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.3331, allocations: 63.44 kB / 410 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.3331, allocations: 23.94 kB / 410 MB, free: 5.129 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.3343, allocations: 0.8422 MB / 410.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3343, allocations: 0 / 410.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001371/0.3357, allocations: 311.9 kB / 411.2 MB, free: 3.98 MB / 318.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.0002767/0.336, allocations: 139.7 kB / 411.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.3375, allocations: 0.933 MB / 412.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3375, allocations: 0 / 412.2 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.3382, allocations: 472.1 kB / 412.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.3396, allocations: 328.8 kB / 413 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.3436, allocations: 2.508 MB / 415.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007435/0.3444, allocations: 1.178 MB / 416.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005963/0.345, allocations: 163.3 kB / 416.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.3452, allocations: 95.36 kB / 416.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3452, allocations: 2.625 kB / 417 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Templates: time 0.02765/0.3728, allocations: 14.92 MB / 431.9 MB, free: 15.41 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches