Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 96.27 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 51.92 kB / 280.7 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1365, allocations: 46.62 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.0121/0.1487, allocations: 8.172 MB / 335.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007364/0.1561, allocations: 2.74 MB / 338.2 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.1578, allocations: 23.94 kB / 338.2 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001978/0.1598, allocations: 0.548 MB / 338.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001741/0.1615, allocations: 480.2 kB / 339.2 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006094/0.1621, allocations: 259.7 kB / 339.5 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001507/0.1637, allocations: 1.494 MB / 341 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000797/0.1645, allocations: 0.5886 MB / 341.6 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006122/0.1651, allocations: 0.5603 MB / 342.1 MB, free: 5.523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006376/0.1657, allocations: 0.6144 MB / 342.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001805/0.1659, allocations: 143.9 kB / 342.9 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003959/0.1663, allocations: 176 kB / 343.1 MB, free: 4.594 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002443/0.1666, allocations: 286.9 kB / 343.3 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006599/0.1673, allocations: 0.6726 MB / 344 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001749/0.169, allocations: 1.736 MB / 345.8 MB, free: 1.895 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.169, allocations: 0 / 345.8 MB, free: 1.895 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.169, allocations: 4 kB / 345.8 MB, free: 1.891 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.389e-05/0.1691, allocations: 0 / 345.8 MB, free: 1.891 MB / 286.1 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.002753/0.1718, allocations: 1.472 MB / 347.2 MB, free: 372 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.1719, allocations: 15.89 kB / 347.2 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007377/0.1726, allocations: 191.3 kB / 347.4 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.1739, allocations: 0.7424 MB / 348.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.6e-05/0.174, allocations: 74 kB / 348.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.1741, allocations: 103.8 kB / 348.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.1757, allocations: 0.9503 MB / 349.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.1757, allocations: 3.938 kB / 349.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.352e-05/0.1758, allocations: 48 kB / 349.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.1758, allocations: 24 kB / 349.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.177, allocations: 0.6442 MB / 350 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005888/0.1829, allocations: 3.953 MB / 354 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/0.1838, allocations: 443.8 kB / 354.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006307/0.1845, allocations: 272.5 kB / 354.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.072e-05/0.1845, allocations: 4 kB / 354.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.1846, allocations: 42.55 kB / 354.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 4.178e-06/0.1846, allocations: 0 / 354.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003986/0.1886, allocations: 1.536 MB / 356.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.337e-05/0.1887, allocations: 81.11 kB / 356.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001582/0.1903, allocations: 0.8333 MB / 357.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.947e-05/0.1904, allocations: 41.64 kB / 357.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005351/0.1909, allocations: 0.5681 MB / 357.8 MB, free: 5.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.1911, allocations: 165.6 kB / 357.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.1914, allocations: 134.5 kB / 358.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1915, allocations: 330 kB / 358.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003419/0.1919, allocations: 173.9 kB / 358.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006185/0.1925, allocations: 471.6 kB / 359 MB, free: 3.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.1937, allocations: 0.6797 MB / 359.7 MB, free: 3.133 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1937, allocations: 0 / 359.7 MB, free: 3.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001683/0.1954, allocations: 0.7903 MB / 360.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.1954, allocations: 8 kB / 360.5 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.1954, allocations: 12.39 kB / 360.5 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003592/0.1958, allocations: 85.69 kB / 360.6 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005525/0.1964, allocations: 159.7 kB / 360.7 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003039/0.1994, allocations: 3.146 MB / 363.9 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008199/0.2003, allocations: 39.89 kB / 363.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.406e-05/0.2003, allocations: 36 kB / 364 MB, free: 14.57 MB / 318.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006175/0.201, allocations: 265.6 kB / 364.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/0.2012, allocations: 98.84 kB / 364.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.2023, allocations: 499 kB / 364.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.2024, allocations: 8 kB / 364.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2024, allocations: 3.938 kB / 364.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.2024, allocations: 3.984 kB / 364.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.2054, allocations: 1.477 MB / 366.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.2054, allocations: 4 kB / 366.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.2058, allocations: 72.02 kB / 366.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002363/0.206, allocations: 85.83 kB / 366.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.2061, allocations: 8 kB / 366.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002705/0.2088, allocations: 3.118 MB / 369.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.2088, allocations: 4.031 kB / 369.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.2104, allocations: 0.801 MB / 370.4 MB, free: 7.699 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004906/0.2109, allocations: 200 kB / 370.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.2111, allocations: 15.94 kB / 370.6 MB, free: 7.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005119/0.2116, allocations: 28.11 kB / 370.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.2117, allocations: 35.95 kB / 370.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.315e-05/0.2118, allocations: 15.98 kB / 370.7 MB, free: 7.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009912/0.2127, allocations: 0.5732 MB / 371.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2128, allocations: 0 / 371.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001054/0.2138, allocations: 208 kB / 371.5 MB, free: 6.617 MB / 318.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0002775/0.2141, allocations: 123.2 kB / 371.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.2156, allocations: 0.7172 MB / 372.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.2156, allocations: 256 / 372.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006894/0.2163, allocations: 453.4 kB / 372.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/0.2177, allocations: 232.8 kB / 373 MB, free: 5.051 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.2213, allocations: 1.754 MB / 374.7 MB, free: 3.246 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008419/0.2222, allocations: 1.009 MB / 375.7 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005291/0.2227, allocations: 111.3 kB / 375.8 MB, free: 2.098 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.2229, allocations: 55.44 kB / 375.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of SimCode: time 1.303e-06/0.2229, allocations: 0 / 375.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of Templates: time 0.2519/0.4748, allocations: 10.71 MB / 386.6 MB, free: 49.75 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches