Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.18/1.18, allocations: 205.1 MB / 223.7 MB, free: 8.484 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.0008996/0.0008996, allocations: 103.6 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007491/0.0007492, allocations: 47.91 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1882, allocations: 46.61 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.006472/0.1947, allocations: 7.904 MB / 381.7 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.1977, allocations: 2.609 MB / 384.3 MB, free: 37.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003687/0.1981, allocations: 24.94 kB / 384.4 MB, free: 37.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.1993, allocations: 0.49 MB / 384.9 MB, free: 37.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007259/0.2001, allocations: 393.9 kB / 385.2 MB, free: 36.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.2004, allocations: 204.3 kB / 385.4 MB, free: 36.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.2017, allocations: 1.371 MB / 386.8 MB, free: 35.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006478/0.2023, allocations: 0.5142 MB / 387.3 MB, free: 35.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005689/0.2029, allocations: 497.6 kB / 387.8 MB, free: 35.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/0.2034, allocations: 0.5468 MB / 388.4 MB, free: 34.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.2036, allocations: 83.75 kB / 388.4 MB, free: 34.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000363/0.204, allocations: 121.2 kB / 388.6 MB, free: 34.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.2042, allocations: 224.9 kB / 388.8 MB, free: 34.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.2046, allocations: 0.5946 MB / 389.4 MB, free: 33.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009934/0.2056, allocations: 1.639 MB / 391 MB, free: 32.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.2056, allocations: 0 / 391 MB, free: 32.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.2056, allocations: 0 / 391 MB, free: 32.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.2056, allocations: 4 kB / 391 MB, free: 32.27 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001917/0.2075, allocations: 1.429 MB / 392.4 MB, free: 30.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.2076, allocations: 8.031 kB / 392.4 MB, free: 30.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004218/0.208, allocations: 167.4 kB / 392.6 MB, free: 30.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007492/0.2088, allocations: 0.7145 MB / 393.3 MB, free: 29.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.2088, allocations: 78 kB / 393.4 MB, free: 29.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.282e-05/0.2089, allocations: 103.8 kB / 393.5 MB, free: 29.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.21, allocations: 0.9113 MB / 394.4 MB, free: 28.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/0.2101, allocations: 11.94 kB / 394.4 MB, free: 28.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.764e-05/0.2101, allocations: 40 kB / 394.5 MB, free: 28.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.2102, allocations: 24 kB / 394.5 MB, free: 28.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009094/0.2111, allocations: 0.6246 MB / 395.1 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003148/0.2142, allocations: 3.916 MB / 399 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004171/0.2147, allocations: 351.3 kB / 399.4 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.2149, allocations: 150.8 kB / 399.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.2149, allocations: 4 kB / 399.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.215, allocations: 38.56 kB / 399.6 MB, free: 23.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.563e-06/0.215, allocations: 4 kB / 399.6 MB, free: 23.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001681/0.2167, allocations: 1.185 MB / 400.8 MB, free: 22.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.2167, allocations: 85.11 kB / 400.8 MB, free: 21.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007128/0.2174, allocations: 0.8252 MB / 401.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.2174, allocations: 29.7 kB / 401.7 MB, free: 21.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/0.2177, allocations: 0.5679 MB / 402.3 MB, free: 20.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.172e-05/0.2177, allocations: 130.2 kB / 402.4 MB, free: 20.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.2179, allocations: 126.5 kB / 402.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.42e-05/0.2179, allocations: 338 kB / 402.8 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.2182, allocations: 141.9 kB / 403 MB, free: 19.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/0.2185, allocations: 467.9 kB / 403.4 MB, free: 19.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005903/0.2191, allocations: 0.6314 MB / 404.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2191, allocations: 4 kB / 404.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0008485/0.22, allocations: 0.693 MB / 404.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.22, allocations: 12.16 kB / 404.8 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.22, allocations: 12 kB / 404.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001227/0.2201, allocations: 36.84 kB / 404.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.2205, allocations: 151.8 kB / 405 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005798/0.2211, allocations: 1.299 MB / 406.3 MB, free: 16.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003829/0.2215, allocations: 39.89 kB / 406.3 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.2216, allocations: 32 kB / 406.3 MB, free: 15.97 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002204/0.2218, allocations: 261.1 kB / 406.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.813e-05/0.2219, allocations: 82.97 kB / 406.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005476/0.2224, allocations: 382.1 kB / 407 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2224, allocations: 4 kB / 407.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.2224, allocations: 3.938 kB / 407.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.2225, allocations: 0 / 407.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.2237, allocations: 1.269 MB / 408.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.2237, allocations: 4 kB / 408.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000263/0.224, allocations: 71.89 kB / 408.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.638e-05/0.2241, allocations: 24.84 kB / 408.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.2241, allocations: 12 kB / 408.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004906/0.2246, allocations: 1.272 MB / 409.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2246, allocations: 4 kB / 409.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003342/0.2279, allocations: 4.159 MB / 413.9 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.2281, allocations: 192.2 kB / 414.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.033e-05/0.2282, allocations: 12 kB / 414.1 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.2285, allocations: 23.97 kB / 414.1 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.992e-05/0.2286, allocations: 31.84 kB / 414.1 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.2286, allocations: 8 kB / 414.1 MB, free: 7.613 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005073/0.2291, allocations: 0.5615 MB / 414.7 MB, free: 7.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2291, allocations: 4 kB / 414.7 MB, free: 7.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007134/0.2298, allocations: 272 kB / 415 MB, free: 6.789 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001733/0.23, allocations: 115.2 kB / 415.1 MB, free: 6.668 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007093/0.2307, allocations: 0.5159 MB / 415.6 MB, free: 6.141 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2308, allocations: 4.219 kB / 415.6 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.2311, allocations: 270.3 kB / 415.9 MB, free: 5.859 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008972/0.232, allocations: 195.8 kB / 416.1 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002207/0.2342, allocations: 2.461 MB / 418.5 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.2345, allocations: 1.004 MB / 419.5 MB, free: 2.098 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003311/0.2348, allocations: 106.9 kB / 419.6 MB, free: 1.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.73e-05/0.2349, allocations: 51.44 kB / 419.7 MB, free: 1.938 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.235, allocations: 0 / 419.7 MB, free: 1.938 MB / 298.7 MB Notification: Performance of Templates: time 0.01461/0.2496, allocations: 9.688 MB / 429.4 MB, free: 8.27 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches