Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001458, allocations: 177.9 kB / 16.41 MB, free: 5.707 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.441/1.441, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007893/0.0007894, allocations: 89.27 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 11.98 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1899, allocations: 47.58 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005802/0.1958, allocations: 7.202 MB / 381.8 MB, free: 39.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00346/0.1993, allocations: 2.551 MB / 384.3 MB, free: 37.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004332/0.1997, allocations: 23.91 kB / 384.3 MB, free: 37.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009265/0.2007, allocations: 467.3 kB / 384.8 MB, free: 37.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005928/0.2013, allocations: 393 kB / 385.2 MB, free: 36.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.2016, allocations: 171 kB / 385.3 MB, free: 36.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009818/0.2025, allocations: 1.35 MB / 386.7 MB, free: 36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.2031, allocations: 434.1 kB / 387.1 MB, free: 35.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004542/0.2035, allocations: 460.5 kB / 387.6 MB, free: 35.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004459/0.204, allocations: 0.5114 MB / 388.1 MB, free: 35.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.2041, allocations: 66.09 kB / 388.1 MB, free: 35.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002568/0.2044, allocations: 105.8 kB / 388.2 MB, free: 35.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.916e-05/0.2045, allocations: 195 kB / 388.4 MB, free: 34.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.2046, allocations: 265 kB / 388.7 MB, free: 34.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007778/0.2054, allocations: 1.375 MB / 390.1 MB, free: 33.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2054, allocations: 0 / 390.1 MB, free: 33.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.2054, allocations: 4 kB / 390.1 MB, free: 33.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2055, allocations: 0 / 390.1 MB, free: 33.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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001666/0.2071, allocations: 1.297 MB / 391.4 MB, free: 31.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2072, allocations: 12.03 kB / 391.4 MB, free: 31.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005503/0.2077, allocations: 186.3 kB / 391.6 MB, free: 31.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000829/0.2086, allocations: 0.7232 MB / 392.3 MB, free: 30.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/0.2086, allocations: 70 kB / 392.4 MB, free: 30.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.2087, allocations: 103.9 kB / 392.5 MB, free: 30.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.21, allocations: 0.9424 MB / 393.4 MB, free: 29.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.21, allocations: 4 kB / 393.4 MB, free: 29.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.2101, allocations: 43.94 kB / 393.4 MB, free: 29.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.2101, allocations: 24 kB / 393.5 MB, free: 29.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.2112, allocations: 0.6559 MB / 394.1 MB, free: 29.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.2148, allocations: 3.985 MB / 398.1 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005388/0.2154, allocations: 445 kB / 398.5 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004687/0.2158, allocations: 277.6 kB / 398.8 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.2159, allocations: 4 kB / 398.8 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/0.2159, allocations: 38.56 kB / 398.9 MB, free: 24.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.794e-06/0.2159, allocations: 0 / 398.9 MB, free: 24.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002317/0.2182, allocations: 1.576 MB / 400.4 MB, free: 22.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.2183, allocations: 89.06 kB / 400.5 MB, free: 22.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007836/0.2191, allocations: 0.8293 MB / 401.3 MB, free: 21.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.2191, allocations: 33.7 kB / 401.4 MB, free: 21.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/0.2193, allocations: 0.5604 MB / 401.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.142e-05/0.2194, allocations: 165.6 kB / 402.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.2194, allocations: 16 kB / 402.1 MB, free: 20.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.895e-05/0.2195, allocations: 330 kB / 402.4 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.2198, allocations: 181.9 kB / 402.6 MB, free: 20.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003771/0.2202, allocations: 479.6 kB / 403.1 MB, free: 19.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003698/0.2205, allocations: 263.7 kB / 403.3 MB, free: 19.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2206, allocations: 4 kB / 403.3 MB, free: 19.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001041/0.2216, allocations: 0.787 MB / 404.1 MB, free: 18.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2216, allocations: 8 kB / 404.1 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.2217, allocations: 12 kB / 404.2 MB, free: 18.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002247/0.2219, allocations: 81.62 kB / 404.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004707/0.2224, allocations: 167.7 kB / 404.4 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.2239, allocations: 2.884 MB / 407.3 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.2244, allocations: 43.89 kB / 407.3 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.2244, allocations: 36 kB / 407.4 MB, free: 15.03 MB / 298.7 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 (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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002825/0.2247, allocations: 253.6 kB / 407.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.184e-05/0.2248, allocations: 87.03 kB / 407.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007988/0.2256, allocations: 0.5187 MB / 408.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2256, allocations: 4 kB / 408.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2257, allocations: 4 kB / 408.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2257, allocations: 3.953 kB / 408.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001625/0.2273, allocations: 1.488 MB / 409.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2273, allocations: 0 / 409.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.2276, allocations: 76.11 kB / 409.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001648/0.2278, allocations: 85.56 kB / 409.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.2278, allocations: 12.12 kB / 409.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.2292, allocations: 2.852 MB / 412.7 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2292, allocations: 4.031 kB / 412.7 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.2302, allocations: 0.8161 MB / 413.6 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/0.2304, allocations: 196.1 kB / 413.7 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.76e-05/0.2305, allocations: 15.98 kB / 413.8 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004137/0.2309, allocations: 31.98 kB / 413.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.231, allocations: 35.95 kB / 413.8 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.231, allocations: 12 kB / 413.8 MB, free: 8.102 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005588/0.2316, allocations: 0.5732 MB / 414.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2316, allocations: 0 / 414.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006774/0.2323, allocations: 212 kB / 414.6 MB, free: 7.324 MB / 298.7 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 (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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001614/0.2324, allocations: 115.2 kB / 414.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009098/0.2334, allocations: 0.7178 MB / 415.4 MB, free: 6.461 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2334, allocations: 192 / 415.4 MB, free: 6.461 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005125/0.2339, allocations: 461.1 kB / 415.9 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009828/0.2349, allocations: 224.9 kB / 416.1 MB, free: 5.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.237, allocations: 2.174 MB / 418.3 MB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.2374, allocations: 1.017 MB / 419.3 MB, free: 2.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.2375, allocations: 59.44 kB / 419.4 MB, free: 2.441 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2375, allocations: 0 / 419.4 MB, free: 2.441 MB / 298.7 MB Notification: Performance of Templates: time 0.02124/0.2588, allocations: 21.16 MB / 440.5 MB, free: 13.27 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches