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.001607/0.001607, allocations: 114.4 kB / 17.75 MB, free: 5.176 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.001868/0.001868, allocations: 183 kB / 18.67 MB, free: 4.258 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.318/1.318, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.92 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2141, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.012/0.2261, allocations: 11.75 MB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005469/0.2316, allocations: 3.223 MB / 416.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001407/0.233, allocations: 39.88 kB / 416.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002063/0.2352, allocations: 0.6713 MB / 417.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.2374, allocations: 0.7251 MB / 417.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.2385, allocations: 399.5 kB / 418.2 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002863/0.2414, allocations: 2.25 MB / 420.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001469/0.2428, allocations: 0.9889 MB / 421.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.2441, allocations: 0.8444 MB / 422.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.2454, allocations: 0.91 MB / 423.2 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000397/0.2458, allocations: 216 kB / 423.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000655/0.2465, allocations: 271.9 kB / 423.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003751/0.2469, allocations: 426.5 kB / 424.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.2481, allocations: 1.019 MB / 425.1 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002896/0.251, allocations: 2.689 MB / 427.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.251, allocations: 0 / 427.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.251, allocations: 0 / 427.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.165e-05/0.2511, allocations: 0 / 427.8 MB, free: 14.32 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003849/0.255, allocations: 2.109 MB / 429.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.255, allocations: 8.031 kB / 429.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008285/0.2558, allocations: 263.6 kB / 430.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.2576, allocations: 1.052 MB / 431.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.085e-05/0.2577, allocations: 119.5 kB / 431.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/0.2579, allocations: 167.9 kB / 431.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.2605, allocations: 1.483 MB / 433 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.671e-05/0.2605, allocations: 11.95 kB / 433 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/0.2607, allocations: 63.98 kB / 433.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.2607, allocations: 40 kB / 433.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.2626, allocations: 0.9746 MB / 434.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007977/0.2706, allocations: 6.53 MB / 440.6 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/0.2714, allocations: 412.6 kB / 441 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/0.2718, allocations: 220.2 kB / 441.2 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.064e-05/0.2719, allocations: 8.422 kB / 441.2 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004824/0.2724, allocations: 268.8 kB / 441.5 MB, free: 48 kB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.645e-06/0.2724, allocations: 7.938 kB / 441.5 MB, free: 40 kB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003216/0.2756, allocations: 1.788 MB / 443.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/0.2757, allocations: 162.8 kB / 443.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.2774, allocations: 1.277 MB / 444.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.2774, allocations: 37.7 kB / 444.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006278/0.2781, allocations: 0.8972 MB / 445.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.2782, allocations: 206.3 kB / 445.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002772/0.2785, allocations: 222.8 kB / 446.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2787, allocations: 361.9 kB / 446.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004522/0.2791, allocations: 222.5 kB / 446.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008083/0.2799, allocations: 0.8073 MB / 447.5 MB, free: 9.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.2813, allocations: 1.126 MB / 448.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.2813, allocations: 4 kB / 448.6 MB, free: 8.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001907/0.2832, allocations: 1.174 MB / 449.8 MB, free: 7.039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.433e-05/0.2833, allocations: 41.69 kB / 449.8 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.2833, allocations: 20 kB / 449.8 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002246/0.2835, allocations: 69.64 kB / 449.9 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.2844, allocations: 263.5 kB / 450.2 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001917/0.2863, allocations: 2.777 MB / 452.9 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009072/0.2872, allocations: 72.05 kB / 453 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-05/0.2873, allocations: 63.98 kB / 453.1 MB, free: 3.453 MB / 366.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.0005118/0.2878, allocations: 358.8 kB / 453.4 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.288, allocations: 139.1 kB / 453.6 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.289, allocations: 0.5528 MB / 454.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.289, allocations: 3.984 kB / 454.1 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.289, allocations: 0 / 454.1 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003671/0.2894, allocations: 256.1 kB / 454.4 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.2896, allocations: 12 kB / 454.4 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004814/0.2901, allocations: 31.97 kB / 454.4 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.31e-05/0.2902, allocations: 40.45 kB / 454.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001225/0.2914, allocations: 0.5668 MB / 455 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001239/0.2927, allocations: 0.8745 MB / 455.9 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003121/0.293, allocations: 184.4 kB / 456.1 MB, free: 384 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001121/0.2941, allocations: 0.85 MB / 456.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of Backend: time 5.31e-07/0.2941, allocations: 0 / 456.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.2958, allocations: 0.8909 MB / 457.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of SimCode: time 0.00427/0.3001, allocations: 3.175 MB / 461 MB, free: 11.37 MB / 382.1 MB Notification: Performance of Templates: time 0.02796/0.3281, allocations: 16 MB / 477 MB, free: 11.53 MB / 398.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 -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