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.0009721/0.0009724, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007353/0.0007353, allocations: 100.3 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002025/0.0002026, allocations: 8 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1841, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005086/0.1893, allocations: 7.254 MB / 414.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003091/0.1924, allocations: 2.562 MB / 417.3 MB, free: 18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004352/0.1929, allocations: 23.94 kB / 417.3 MB, free: 17.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008909/0.1938, allocations: 473.3 kB / 417.8 MB, free: 17.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005996/0.1944, allocations: 397.1 kB / 418.2 MB, free: 17.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.1946, allocations: 159.8 kB / 418.3 MB, free: 16.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007466/0.1954, allocations: 1.358 MB / 419.7 MB, free: 15.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00044/0.1959, allocations: 427.3 kB / 420.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003722/0.1962, allocations: 465.9 kB / 420.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.1966, allocations: 0.5132 MB / 421.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.695e-05/0.1967, allocations: 68 kB / 421.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.1969, allocations: 104 kB / 421.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.986e-05/0.197, allocations: 195 kB / 421.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.1972, allocations: 265.1 kB / 421.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007467/0.1979, allocations: 1.383 MB / 423.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1979, allocations: 0 / 423.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1979, allocations: 0 / 423.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.198, allocations: 0 / 423.1 MB, free: 12.18 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.001629/0.1996, allocations: 1.289 MB / 424.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.1996, allocations: 12.03 kB / 424.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006146/0.2002, allocations: 202.3 kB / 424.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007999/0.2011, allocations: 0.7154 MB / 425.3 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.636e-05/0.2011, allocations: 77.95 kB / 425.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.717e-05/0.2012, allocations: 103.9 kB / 425.5 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.2025, allocations: 0.9424 MB / 426.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/0.2025, allocations: 8 kB / 426.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.519e-05/0.2026, allocations: 40 kB / 426.5 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.2026, allocations: 27.94 kB / 426.5 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.2037, allocations: 0.6597 MB / 427.2 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003663/0.2073, allocations: 3.969 MB / 431.1 MB, free: 3.789 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005373/0.2079, allocations: 445 kB / 431.6 MB, free: 3.324 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004686/0.2084, allocations: 285.3 kB / 431.8 MB, free: 3.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2084, allocations: 7.781 kB / 431.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.2084, allocations: 34.56 kB / 431.9 MB, free: 2.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.014e-06/0.2084, allocations: 0 / 431.9 MB, free: 2.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002375/0.2108, allocations: 1.577 MB / 433.5 MB, free: 1.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/0.2109, allocations: 81.11 kB / 433.5 MB, free: 1.223 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007886/0.2117, allocations: 0.841 MB / 434.4 MB, free: 384 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2117, allocations: 33.64 kB / 434.4 MB, free: 344 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/0.212, allocations: 0.5604 MB / 435 MB, free: 15.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.2121, allocations: 161.7 kB / 435.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.2121, allocations: 16 kB / 435.1 MB, free: 15.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.2123, allocations: 337.9 kB / 435.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000338/0.2126, allocations: 177.9 kB / 435.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005232/0.2131, allocations: 475.6 kB / 436.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.2136, allocations: 251.6 kB / 436.4 MB, free: 14.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.2136, allocations: 8 kB / 436.4 MB, free: 14.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00129/0.2149, allocations: 0.7869 MB / 437.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2149, allocations: 8 kB / 437.2 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.215, allocations: 12.25 kB / 437.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002538/0.2152, allocations: 89.61 kB / 437.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004788/0.2157, allocations: 159.7 kB / 437.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/0.2179, allocations: 2.88 MB / 440.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005815/0.2185, allocations: 47.95 kB / 440.3 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.2185, allocations: 36 kB / 440.4 MB, free: 9.934 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.0003939/0.2189, allocations: 253.6 kB / 440.6 MB, free: 9.676 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.219, allocations: 90.91 kB / 440.7 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009419/0.22, allocations: 0.5188 MB / 441.2 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.22, allocations: 4 kB / 441.2 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.22, allocations: 4 kB / 441.2 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.22, allocations: 0 / 441.2 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.222, allocations: 1.485 MB / 442.7 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.222, allocations: 8 kB / 442.7 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.2224, allocations: 75.91 kB / 442.8 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000194/0.2226, allocations: 73.89 kB / 442.9 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.2226, allocations: 8 kB / 442.9 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.2245, allocations: 2.852 MB / 445.7 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.2245, allocations: 4.031 kB / 445.7 MB, free: 4.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.2258, allocations: 0.8161 MB / 446.6 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003166/0.2262, allocations: 212.1 kB / 446.8 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.359e-05/0.2263, allocations: 15.98 kB / 446.8 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.2267, allocations: 31.98 kB / 446.8 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.2268, allocations: 31.95 kB / 446.8 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.2269, allocations: 19.98 kB / 446.9 MB, free: 2.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007514/0.2276, allocations: 0.5693 MB / 447.4 MB, free: 2.422 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2276, allocations: 0 / 447.4 MB, free: 2.422 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000803/0.2284, allocations: 212 kB / 447.6 MB, free: 2.215 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.0002197/0.2287, allocations: 119.2 kB / 447.8 MB, free: 2.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.2299, allocations: 0.7177 MB / 448.5 MB, free: 1.348 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2299, allocations: 0 / 448.5 MB, free: 1.348 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006375/0.2305, allocations: 457.7 kB / 448.9 MB, free: 0.875 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.2315, allocations: 223.9 kB / 449.1 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.2343, allocations: 2.188 MB / 451.3 MB, free: 14.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005218/0.2348, allocations: 1.009 MB / 452.3 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.235, allocations: 59.44 kB / 452.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.235, allocations: 4 kB / 452.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of Templates: time 0.02193/0.2569, allocations: 21.15 MB / 473.6 MB, free: 8.203 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