Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 108 kB / 18.4 MB, free: 4.699 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.001045/0.001045, allocations: 186.3 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 55.91 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07533/0.07658, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.1692/0.2458, allocations: 11.7 MB / 387.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005427/0.2513, allocations: 3.214 MB / 390.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00167/0.253, allocations: 35.47 kB / 390.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.2549, allocations: 0.6441 MB / 391.4 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002292/0.2572, allocations: 0.6795 MB / 392.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009984/0.2582, allocations: 395 kB / 392.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.2611, allocations: 2.25 MB / 394.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/0.2623, allocations: 0.999 MB / 395.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001273/0.2636, allocations: 0.8421 MB / 396.6 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009767/0.2646, allocations: 0.9148 MB / 397.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002629/0.2648, allocations: 216.5 kB / 397.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005023/0.2653, allocations: 254.3 kB / 397.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.2656, allocations: 427 kB / 398.4 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008262/0.2665, allocations: 1.015 MB / 399.4 MB, free: 52 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003131/0.2696, allocations: 2.68 MB / 402.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2696, allocations: 7.531 kB / 402.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2696, allocations: 0 / 402.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.385e-05/0.2697, allocations: 0 / 402.1 MB, free: 15.03 MB / 334.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.003859/0.2736, allocations: 2.057 MB / 404.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2736, allocations: 11.22 kB / 404.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000813/0.2744, allocations: 255.9 kB / 404.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001838/0.2763, allocations: 1.049 MB / 405.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.2764, allocations: 117.6 kB / 405.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000226/0.2766, allocations: 160.8 kB / 405.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.2792, allocations: 1.483 MB / 407.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.819e-05/0.2792, allocations: 15.17 kB / 407.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.2794, allocations: 63.03 kB / 407.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.332e-05/0.2794, allocations: 37.97 kB / 407.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.2813, allocations: 0.9718 MB / 408.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008507/0.2898, allocations: 6.521 MB / 414.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008402/0.2907, allocations: 398.6 kB / 415.2 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004365/0.2911, allocations: 217.7 kB / 415.4 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.2912, allocations: 9.25 kB / 415.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005484/0.2918, allocations: 273.3 kB / 415.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.745e-06/0.2918, allocations: 1.125 kB / 415.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003359/0.2951, allocations: 1.758 MB / 417.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.731e-05/0.2952, allocations: 168 kB / 417.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001716/0.297, allocations: 1.276 MB / 418.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/0.297, allocations: 36.36 kB / 418.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006089/0.2976, allocations: 0.8692 MB / 419.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.2978, allocations: 212.6 kB / 420 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.2981, allocations: 217.2 kB / 420.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2982, allocations: 351.4 kB / 420.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004493/0.2987, allocations: 236.9 kB / 420.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008209/0.2995, allocations: 0.8052 MB / 421.6 MB, free: 424 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.3008, allocations: 1.114 MB / 422.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.3009, allocations: 5.5 kB / 422.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001934/0.3028, allocations: 1.171 MB / 423.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.3029, allocations: 42.42 kB / 423.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/0.3029, allocations: 20 kB / 423.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.3031, allocations: 73.58 kB / 424 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007615/0.3039, allocations: 263.6 kB / 424.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.3058, allocations: 2.784 MB / 427 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.3068, allocations: 75.88 kB / 427.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-05/0.3069, allocations: 60 kB / 427.2 MB, free: 10.73 MB / 350.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.0005625/0.3075, allocations: 349.3 kB / 427.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.3077, allocations: 130.4 kB / 427.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/0.3087, allocations: 0.5567 MB / 428.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3087, allocations: 4.094 kB / 428.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3087, allocations: 3.984 kB / 428.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.3088, allocations: 7.984 kB / 428.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.3115, allocations: 1.87 MB / 430.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3115, allocations: 4 kB / 430.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.3119, allocations: 103.9 kB / 430.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001526/0.3121, allocations: 42.08 kB / 430.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.487e-05/0.3121, allocations: 20 kB / 430.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.3139, allocations: 2.753 MB / 433 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3139, allocations: 8 kB / 433 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.3153, allocations: 0.9161 MB / 433.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004515/0.3158, allocations: 251.4 kB / 434.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.3159, allocations: 19.94 kB / 434.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/0.3166, allocations: 39.97 kB / 434.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.3167, allocations: 51.66 kB / 434.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.3167, allocations: 23.94 kB / 434.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.3179, allocations: 0.8461 MB / 435.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3179, allocations: 0 / 435.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001163/0.319, allocations: 300 kB / 435.4 MB, free: 1.938 MB / 350.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.0002152/0.3193, allocations: 135.1 kB / 435.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3208, allocations: 0.926 MB / 436.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3208, allocations: 0 / 436.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006306/0.3214, allocations: 458.5 kB / 436.9 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/0.3229, allocations: 327.1 kB / 437.3 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.3268, allocations: 2.568 MB / 439.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007452/0.3276, allocations: 1.174 MB / 441 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.3278, allocations: 99.36 kB / 441.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3278, allocations: 4 kB / 441.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Templates: time 0.03594/0.3638, allocations: 31.89 MB / 473 MB, free: 12.14 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches