Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.001284/0.001284, allocations: 182 kB / 17.56 MB, free: 6.203 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.409/1.409, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003036, allocations: 8.562 kB / 301.4 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1056, allocations: 50.42 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008502/0.1141, allocations: 7.688 MB / 359.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006182/0.1204, allocations: 2.646 MB / 362.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00218/0.1227, allocations: 23.94 kB / 362.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002271/0.125, allocations: 498.1 kB / 362.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002173/0.1272, allocations: 421.1 kB / 363.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007043/0.1279, allocations: 227.7 kB / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.13, allocations: 1.424 MB / 364.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007857/0.1308, allocations: 0.5007 MB / 365.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007413/0.1315, allocations: 477.6 kB / 365.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005791/0.1321, allocations: 0.5363 MB / 366.2 MB, free: 5.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.1322, allocations: 64 kB / 366.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003029/0.1325, allocations: 104 kB / 366.4 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.1327, allocations: 199 kB / 366.6 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.1333, allocations: 0.6156 MB / 367.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.1347, allocations: 1.642 MB / 368.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1347, allocations: 0 / 368.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1347, allocations: 4 kB / 368.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.1347, allocations: 4 kB / 368.9 MB, free: 2.57 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002183/0.1369, allocations: 1.277 MB / 370.2 MB, free: 1.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.137, allocations: 8.031 kB / 370.2 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006389/0.1376, allocations: 191.3 kB / 370.3 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.1387, allocations: 0.7541 MB / 371.1 MB, free: 252 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.251e-05/0.1387, allocations: 77.94 kB / 371.2 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.1389, allocations: 99.91 kB / 371.3 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1734/0.3123, allocations: 0.9398 MB / 372.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/0.3123, allocations: 5.094 kB / 372.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.656e-05/0.3124, allocations: 44.95 kB / 372.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.3125, allocations: 23.66 kB / 372.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.3138, allocations: 0.6598 MB / 372.9 MB, free: 24.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004893/0.3187, allocations: 3.979 MB / 376.9 MB, free: 21.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006533/0.3194, allocations: 451.8 kB / 377.4 MB, free: 21.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/0.3199, allocations: 273.6 kB / 377.6 MB, free: 21.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.32, allocations: 5.438 kB / 377.6 MB, free: 21.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.32, allocations: 38.14 kB / 377.7 MB, free: 21.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.044e-06/0.32, allocations: 0 / 377.7 MB, free: 21.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00273/0.3227, allocations: 1.579 MB / 379.3 MB, free: 20.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.3228, allocations: 86.58 kB / 379.3 MB, free: 20.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.324, allocations: 0.8374 MB / 380.2 MB, free: 20.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.324, allocations: 37.33 kB / 380.2 MB, free: 20.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003191/0.3243, allocations: 0.565 MB / 380.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.952e-05/0.3244, allocations: 156.3 kB / 380.9 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.419e-05/0.3245, allocations: 63.44 kB / 381 MB, free: 19.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.931e-05/0.3246, allocations: 337.9 kB / 381.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.325, allocations: 184.8 kB / 381.5 MB, free: 19.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004362/0.3254, allocations: 477.1 kB / 382 MB, free: 18.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007937/0.3262, allocations: 0.6985 MB / 382.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.3262, allocations: 3.531 kB / 382.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001243/0.3275, allocations: 0.8018 MB / 383.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.3275, allocations: 11.84 kB / 383.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.3275, allocations: 12.84 kB / 383.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/0.3278, allocations: 80.38 kB / 383.6 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.3283, allocations: 158.1 kB / 383.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/0.33, allocations: 2.883 MB / 386.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005208/0.3305, allocations: 38.25 kB / 386.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.195e-05/0.3306, allocations: 39.11 kB / 386.7 MB, free: 14.83 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003208/0.3309, allocations: 270.5 kB / 387 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.331, allocations: 91.02 kB / 387 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009908/0.332, allocations: 0.5127 MB / 387.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3321, allocations: 8.156 kB / 387.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3321, allocations: 2.828 kB / 387.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3321, allocations: 6.062 kB / 387.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.3342, allocations: 1.484 MB / 389.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3342, allocations: 4.375 kB / 389.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.3346, allocations: 78.98 kB / 389.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001905/0.3348, allocations: 75.55 kB / 389.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.3348, allocations: 9.344 kB / 389.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001608/0.3364, allocations: 2.853 MB / 392.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3364, allocations: 6.438 kB / 392.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.3378, allocations: 0.8218 MB / 392.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.3381, allocations: 200.6 kB / 393.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.507e-05/0.3382, allocations: 17 kB / 393.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.3386, allocations: 31.91 kB / 393.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.3387, allocations: 38.91 kB / 393.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.3388, allocations: 18.59 kB / 393.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008887/0.3397, allocations: 0.5731 MB / 393.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3397, allocations: 0 / 393.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001016/0.3407, allocations: 212.8 kB / 394 MB, free: 9.688 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0002237/0.3409, allocations: 131.4 kB / 394.1 MB, free: 9.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.3422, allocations: 0.7201 MB / 394.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.3422, allocations: 1.188 kB / 394.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.3429, allocations: 465.2 kB / 395.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.3442, allocations: 209.8 kB / 395.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.3467, allocations: 2.256 MB / 397.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.3472, allocations: 1.011 MB / 398.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000417/0.3476, allocations: 108.8 kB / 398.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.3478, allocations: 54.91 kB / 398.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3478, allocations: 0 / 398.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of Templates: time 0.01748/0.3652, allocations: 10.09 MB / 409 MB, free: 14.02 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches