Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000971/0.000971, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007227/0.0007227, allocations: 91.78 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002128/0.0002128, allocations: 11.98 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1905, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.005064/0.1956, allocations: 7.139 MB / 415.2 MB, free: 20.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003062/0.1987, allocations: 2.501 MB / 417.7 MB, free: 18.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004754/0.1992, allocations: 23.94 kB / 417.7 MB, free: 18.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009498/0.2001, allocations: 461.3 kB / 418.2 MB, free: 17.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007217/0.2009, allocations: 385.2 kB / 418.5 MB, free: 17.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.2012, allocations: 155.8 kB / 418.7 MB, free: 17.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008777/0.2021, allocations: 1.362 MB / 420.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005292/0.2026, allocations: 0.4889 MB / 420.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000441/0.2031, allocations: 461.9 kB / 421 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003772/0.2034, allocations: 0.4977 MB / 421.5 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.159e-05/0.2035, allocations: 68 kB / 421.6 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.2038, allocations: 107.9 kB / 421.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.2039, allocations: 191.1 kB / 421.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000347/0.2042, allocations: 0.581 MB / 422.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007718/0.205, allocations: 1.34 MB / 423.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.205, allocations: 0 / 423.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.205, allocations: 0 / 423.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.2051, allocations: 0 / 423.8 MB, free: 11.91 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001623/0.2067, allocations: 1.258 MB / 425 MB, free: 10.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.2067, allocations: 8.031 kB / 425 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005587/0.2073, allocations: 191.3 kB / 425.2 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008667/0.2082, allocations: 0.7347 MB / 426 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.814e-05/0.2082, allocations: 70 kB / 426 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.2083, allocations: 103.9 kB / 426.1 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.2097, allocations: 0.9346 MB / 427.1 MB, free: 8.492 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.2097, allocations: 4 kB / 427.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.77e-05/0.2098, allocations: 40 kB / 427.1 MB, free: 8.449 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.2098, allocations: 24 kB / 427.1 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2109, allocations: 0.6364 MB / 427.8 MB, free: 7.785 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003762/0.2146, allocations: 3.942 MB / 431.7 MB, free: 3.617 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005331/0.2152, allocations: 443.9 kB / 432.1 MB, free: 3.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004481/0.2157, allocations: 261.3 kB / 432.4 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.2157, allocations: 8.328 kB / 432.4 MB, free: 2.895 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.2157, allocations: 34.89 kB / 432.4 MB, free: 2.852 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 2.345e-06/0.2157, allocations: 3.938 kB / 432.4 MB, free: 2.848 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.002123/0.2179, allocations: 1.41 MB / 433.9 MB, free: 1.363 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/0.2179, allocations: 93.05 kB / 433.9 MB, free: 1.254 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008105/0.2187, allocations: 0.8136 MB / 434.8 MB, free: 444 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.2187, allocations: 37.7 kB / 434.8 MB, free: 400 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.219, allocations: 0.5487 MB / 435.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.2192, allocations: 161.7 kB / 435.5 MB, free: 15.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.851e-05/0.2192, allocations: 16 kB / 435.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.2193, allocations: 338 kB / 435.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.2197, allocations: 169.9 kB / 436 MB, free: 15.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.2202, allocations: 467.9 kB / 436.5 MB, free: 14.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000882/0.2211, allocations: 0.6585 MB / 437.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2211, allocations: 0 / 437.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001265/0.2224, allocations: 0.7707 MB / 437.9 MB, free: 12.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.2224, allocations: 16.03 kB / 437.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.2224, allocations: 12 kB / 437.9 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/0.2227, allocations: 85.61 kB / 438 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000489/0.2232, allocations: 151.8 kB / 438.2 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/0.2254, allocations: 2.884 MB / 441 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005728/0.226, allocations: 39.97 kB / 441.1 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.745e-05/0.226, allocations: 39.94 kB / 441.1 MB, free: 9.488 MB / 314.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 (84): * Single equations (assignments): 82 * 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.0004142/0.2264, allocations: 257.6 kB / 441.4 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.2266, allocations: 82.97 kB / 441.5 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009274/0.2275, allocations: 0.4913 MB / 441.9 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2275, allocations: 12 kB / 442 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2275, allocations: 0 / 442 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.2276, allocations: 3.984 kB / 442 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.2296, allocations: 1.443 MB / 443.4 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2296, allocations: 0 / 443.4 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.2299, allocations: 79.88 kB / 443.5 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/0.2301, allocations: 73.61 kB / 443.6 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.2301, allocations: 20.11 kB / 443.6 MB, free: 6.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.2321, allocations: 2.854 MB / 446.4 MB, free: 3.797 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2321, allocations: 0 / 446.4 MB, free: 3.797 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.2333, allocations: 0.7803 MB / 447.2 MB, free: 2.969 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.2336, allocations: 196.1 kB / 447.4 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.456e-05/0.2337, allocations: 12 kB / 447.4 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.2341, allocations: 35.91 kB / 447.4 MB, free: 2.711 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.309e-05/0.2342, allocations: 35.95 kB / 447.5 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.2342, allocations: 12 kB / 447.5 MB, free: 2.664 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007367/0.235, allocations: 0.5537 MB / 448 MB, free: 2.117 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.235, allocations: 0 / 448 MB, free: 2.117 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007791/0.2358, allocations: 212 kB / 448.3 MB, free: 1.91 MB / 314.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 (38): * Single equations (assignments): 36 * 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.0001855/0.236, allocations: 123.1 kB / 448.4 MB, free: 1.781 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.2371, allocations: 0.6784 MB / 449.1 MB, free: 1.078 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2371, allocations: 4.625 kB / 449.1 MB, free: 1.074 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006156/0.2378, allocations: 449 kB / 449.5 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.239, allocations: 219.9 kB / 449.7 MB, free: 408 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.2418, allocations: 2.136 MB / 451.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.2424, allocations: 1.005 MB / 452.8 MB, free: 13.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.2426, allocations: 59.44 kB / 452.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2426, allocations: 0 / 452.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of Templates: time 0.0227/0.2653, allocations: 20.72 MB / 473.6 MB, free: 8.438 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches