Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002854/0.002861, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.841/3.841, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001964/0.001964, allocations: 98.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006531/0.0006535, allocations: 8 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2027, allocations: 47.59 MB / 374.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.02865/0.2315, allocations: 9.28 MB / 383.8 MB, free: 6.102 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.246, allocations: 3.141 MB / 387 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002968/0.2491, allocations: 31.94 kB / 387 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004288/0.2534, allocations: 0.5129 MB / 387.5 MB, free: 2.406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005856/0.2594, allocations: 0.705 MB / 388.2 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.262, allocations: 251.7 kB / 388.5 MB, free: 1.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.4471/0.7092, allocations: 1.541 MB / 390 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003665/0.7129, allocations: 0.6757 MB / 390.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002765/0.7158, allocations: 0.6364 MB / 391.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003077/0.7189, allocations: 0.7145 MB / 392 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001008/0.72, allocations: 98.34 kB / 392.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001831/0.7219, allocations: 133.5 kB / 392.3 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008879/0.7228, allocations: 275.3 kB / 392.5 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002283/0.7252, allocations: 385.4 kB / 392.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007975/0.7332, allocations: 2.05 MB / 395 MB, free: 10 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.7333, allocations: 0 / 395 MB, free: 10 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.7333, allocations: 0 / 395 MB, free: 10 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001403/0.7335, allocations: 1.406 kB / 395 MB, free: 10 MB / 282.7 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.009047/0.7426, allocations: 1.755 MB / 396.7 MB, free: 9.008 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.689e-05/0.7427, allocations: 9.062 kB / 396.7 MB, free: 9.008 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002342/0.745, allocations: 244.7 kB / 397 MB, free: 8.906 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005333/0.7504, allocations: 1.011 MB / 398 MB, free: 8.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004664/0.751, allocations: 115.4 kB / 398.1 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008727/0.7519, allocations: 158.5 kB / 398.2 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009505/0.7614, allocations: 1.469 MB / 399.7 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001616/0.7617, allocations: 9.781 kB / 399.7 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003831/0.7621, allocations: 64.38 kB / 399.8 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.887e-05/0.7622, allocations: 37.69 kB / 399.8 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007043/0.7692, allocations: 0.9775 MB / 400.8 MB, free: 8.281 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02442/0.7937, allocations: 6.515 MB / 407.3 MB, free: 4.668 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002308/0.7961, allocations: 407.1 kB / 407.7 MB, free: 4.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.381e-05/0.7963, allocations: 5.812 kB / 407.7 MB, free: 4.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001341/0.7976, allocations: 276.6 kB / 408 MB, free: 4.457 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 7.444e-06/0.7977, allocations: 0 / 408 MB, free: 4.457 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.009081/0.8068, allocations: 1.782 MB / 409.8 MB, free: 3.551 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.807, allocations: 165 kB / 409.9 MB, free: 3.359 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004733/0.8117, allocations: 1.187 MB / 411.1 MB, free: 2.906 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000182/0.812, allocations: 36.45 kB / 411.1 MB, free: 2.867 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.8133, allocations: 0.8559 MB / 412 MB, free: 2.086 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004167/0.8137, allocations: 204.6 kB / 412.2 MB, free: 1.914 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.8139, allocations: 25.5 kB / 412.2 MB, free: 1.895 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.8141, allocations: 356.4 kB / 412.6 MB, free: 1.547 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.8154, allocations: 229.6 kB / 412.8 MB, free: 1.445 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002058/0.8175, allocations: 0.8046 MB / 413.6 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.8196, allocations: 395.1 kB / 414 MB, free: 328 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.337e-05/0.8198, allocations: 4.625 kB / 414 MB, free: 328 kB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005855/0.8256, allocations: 1.096 MB / 415.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.8258, allocations: 39.48 kB / 415.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-05/0.8259, allocations: 19.62 kB / 415.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005568/0.8265, allocations: 74.78 kB / 415.2 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/0.8291, allocations: 264.5 kB / 415.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0045/0.8336, allocations: 2.603 MB / 418.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003054/0.8368, allocations: 71.55 kB / 418.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000388/0.8372, allocations: 63.19 kB / 418.2 MB, free: 12.87 MB / 298.7 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002226/0.8395, allocations: 360.2 kB / 418.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007375/0.8402, allocations: 133.7 kB / 418.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003222/0.8435, allocations: 0.5639 MB / 419.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.16e-05/0.8436, allocations: 4.625 kB / 419.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.8437, allocations: 4.094 kB / 419.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/0.8437, allocations: 3.984 kB / 419.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008655/0.8524, allocations: 1.814 MB / 421.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/0.8525, allocations: 3.656 kB / 421.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/0.8539, allocations: 119.2 kB / 421.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004401/0.8544, allocations: 44.48 kB / 421.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.8546, allocations: 13.88 kB / 421.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004474/0.8591, allocations: 2.553 MB / 423.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.839e-06/0.8591, allocations: 2.938 kB / 423.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004616/0.8638, allocations: 1.134 MB / 425 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/0.8653, allocations: 240.2 kB / 425.2 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008246/0.8662, allocations: 23.81 kB / 425.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002134/0.8684, allocations: 30.23 kB / 425.2 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003617/0.8688, allocations: 54.31 kB / 425.3 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.118e-05/0.8689, allocations: 21.42 kB / 425.3 MB, free: 6.918 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.003699/0.8727, allocations: 0.7784 MB / 426.1 MB, free: 6.277 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.753e-06/0.8727, allocations: 2.625 kB / 426.1 MB, free: 6.277 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003746/0.8765, allocations: 303.9 kB / 426.4 MB, free: 5.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006256/0.8772, allocations: 141 kB / 426.5 MB, free: 5.836 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004417/0.8816, allocations: 0.9263 MB / 427.5 MB, free: 4.871 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/0.8817, allocations: 0 / 427.5 MB, free: 4.871 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001966/0.8837, allocations: 464.9 kB / 427.9 MB, free: 4.391 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004627/0.8884, allocations: 310.7 kB / 428.2 MB, free: 4.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.9011, allocations: 3.103 MB / 431.3 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002266/0.9035, allocations: 1.209 MB / 432.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007161/0.9043, allocations: 91.44 kB / 432.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of SimCode: time 1.814e-06/0.9043, allocations: 0 / 432.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of Templates: time 0.1188/1.023, allocations: 29.61 MB / 462.2 MB, free: 1.945 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches