Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,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_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009608/0.0009609, allocations: 192.4 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 226.6 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007253/0.0007254, allocations: 108.7 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002099/0.0002099, allocations: 11.98 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1875, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005521/0.1931, allocations: 7.264 MB / 415.3 MB, free: 20.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003388/0.1965, allocations: 2.559 MB / 417.9 MB, free: 17.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008085/0.1973, allocations: 23.94 kB / 417.9 MB, free: 17.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.1986, allocations: 481.3 kB / 418.4 MB, free: 17.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009363/0.1996, allocations: 393.1 kB / 418.7 MB, free: 16.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003945/0.2, allocations: 159.8 kB / 418.9 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009013/0.2009, allocations: 1.389 MB / 420.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005559/0.2015, allocations: 0.5084 MB / 420.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.2019, allocations: 469.9 kB / 421.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004286/0.2024, allocations: 0.5054 MB / 421.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.954e-05/0.2025, allocations: 64 kB / 421.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002443/0.2027, allocations: 104 kB / 421.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.2029, allocations: 199.1 kB / 422.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003663/0.2032, allocations: 0.5848 MB / 422.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008013/0.204, allocations: 1.379 MB / 424.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2041, allocations: 0 / 424.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2041, allocations: 4 kB / 424.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.2041, allocations: 0 / 424.1 MB, free: 11.61 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.00166/0.2058, allocations: 1.281 MB / 425.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2058, allocations: 8.031 kB / 425.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006573/0.2065, allocations: 207.3 kB / 425.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008567/0.2073, allocations: 0.7471 MB / 426.3 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.2074, allocations: 74 kB / 426.4 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2075, allocations: 99.91 kB / 426.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.2088, allocations: 0.9425 MB / 427.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.2088, allocations: 0 / 427.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.141e-05/0.2089, allocations: 43.98 kB / 427.5 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.2089, allocations: 27.94 kB / 427.5 MB, free: 8.059 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.21, allocations: 0.6675 MB / 428.2 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003804/0.2138, allocations: 3.965 MB / 432.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.2144, allocations: 453.1 kB / 432.6 MB, free: 2.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004849/0.2149, allocations: 277.3 kB / 432.9 MB, free: 2.457 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.215, allocations: 7.781 kB / 432.9 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.215, allocations: 46.55 kB / 432.9 MB, free: 2.395 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.984e-06/0.215, allocations: 0 / 432.9 MB, free: 2.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002388/0.2174, allocations: 1.57 MB / 434.5 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.2175, allocations: 88.98 kB / 434.6 MB, free: 0.625 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009149/0.2184, allocations: 0.8331 MB / 435.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.2184, allocations: 37.7 kB / 435.4 MB, free: 15.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003699/0.2188, allocations: 0.5681 MB / 436 MB, free: 15.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.2189, allocations: 161.7 kB / 436.2 MB, free: 15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/0.219, allocations: 12 kB / 436.2 MB, free: 14.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.2191, allocations: 334 kB / 436.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.2195, allocations: 177.9 kB / 436.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.22, allocations: 479.6 kB / 437.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009111/0.2209, allocations: 0.6838 MB / 437.8 MB, free: 13.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2209, allocations: 8 kB / 437.8 MB, free: 13.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001324/0.2223, allocations: 0.7868 MB / 438.6 MB, free: 12.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2223, allocations: 8 kB / 438.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/0.2223, allocations: 16.19 kB / 438.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002505/0.2226, allocations: 85.61 kB / 438.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005121/0.2231, allocations: 163.7 kB / 438.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.2253, allocations: 2.88 MB / 441.8 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.2259, allocations: 43.95 kB / 441.8 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.647e-05/0.2259, allocations: 32 kB / 441.8 MB, free: 8.758 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 (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.0004155/0.2264, allocations: 265.5 kB / 442.1 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.2265, allocations: 87.06 kB / 442.2 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009884/0.2275, allocations: 0.5264 MB / 442.7 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2275, allocations: 4 kB / 442.7 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2275, allocations: 0 / 442.7 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.2275, allocations: 3.984 kB / 442.7 MB, free: 7.855 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.2297, allocations: 1.485 MB / 444.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2297, allocations: 0 / 444.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003439/0.23, allocations: 75.91 kB / 444.3 MB, free: 6.211 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001979/0.2302, allocations: 73.89 kB / 444.4 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.2303, allocations: 20.06 kB / 444.4 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002026/0.2323, allocations: 2.848 MB / 447.2 MB, free: 3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2323, allocations: 0 / 447.2 MB, free: 3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.2336, allocations: 0.8159 MB / 448 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.2339, allocations: 204 kB / 448.2 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.36e-05/0.234, allocations: 12 kB / 448.3 MB, free: 1.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004148/0.2344, allocations: 27.98 kB / 448.3 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.2345, allocations: 39.83 kB / 448.3 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.2345, allocations: 23.98 kB / 448.3 MB, free: 1.812 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007449/0.2353, allocations: 0.5615 MB / 448.9 MB, free: 1.254 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2353, allocations: 0 / 448.9 MB, free: 1.254 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007609/0.2361, allocations: 208 kB / 449.1 MB, free: 1.051 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 (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.0002069/0.2363, allocations: 127.1 kB / 449.2 MB, free: 0.918 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.2374, allocations: 0.7178 MB / 449.9 MB, free: 180 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.2375, allocations: 3.984 kB / 450 MB, free: 176 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006815/0.2382, allocations: 457.9 kB / 450.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.2394, allocations: 217.6 kB / 450.6 MB, free: 15.49 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.2422, allocations: 2.176 MB / 452.8 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.2428, allocations: 1.009 MB / 453.8 MB, free: 12.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.2429, allocations: 63.44 kB / 453.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2429, allocations: 4 kB / 453.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of Templates: time 0.02282/0.2658, allocations: 21.11 MB / 475 MB, free: 7.078 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches