Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001187, allocations: 201.2 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007528/0.0007528, allocations: 97.06 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002075/0.0002075, allocations: 8 kB / 356.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1817, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007215/0.189, allocations: 10.77 MB / 418.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.193, allocations: 3.123 MB / 421.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007034/0.1937, allocations: 35.94 kB / 422 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.1947, allocations: 0.5242 MB / 422.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.1958, allocations: 0.5932 MB / 423.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004719/0.1963, allocations: 251.7 kB / 423.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.1976, allocations: 2.23 MB / 425.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000843/0.1985, allocations: 0.8427 MB / 426.4 MB, free: 9.254 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000682/0.1991, allocations: 0.7233 MB / 427.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005795/0.1997, allocations: 0.8088 MB / 428 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001441/0.1999, allocations: 108 kB / 428.1 MB, free: 7.609 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003003/0.2002, allocations: 148 kB / 428.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.2004, allocations: 314.5 kB / 428.5 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005507/0.2009, allocations: 0.9192 MB / 429.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001198/0.2021, allocations: 2.224 MB / 431.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2021, allocations: 4 kB / 431.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2021, allocations: 0 / 431.7 MB, free: 3.992 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.2022, allocations: 0 / 431.7 MB, free: 3.992 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002534/0.2047, allocations: 1.833 MB / 433.5 MB, free: 2.102 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.2047, allocations: 12.03 kB / 433.5 MB, free: 2.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007627/0.2055, allocations: 294.3 kB / 433.8 MB, free: 1.801 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.2068, allocations: 1.103 MB / 434.9 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.694e-05/0.2069, allocations: 123.5 kB / 435 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.2071, allocations: 163.8 kB / 435.2 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002314/0.2094, allocations: 1.504 MB / 436.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.803e-05/0.2094, allocations: 11.84 kB / 436.7 MB, free: 14.78 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.2096, allocations: 64 kB / 436.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.821e-05/0.2096, allocations: 36 kB / 436.8 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002041/0.2116, allocations: 1.061 MB / 437.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00735/0.219, allocations: 6.304 MB / 444.1 MB, free: 7.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.2205, allocations: 0.6388 MB / 444.8 MB, free: 6.367 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008459/0.2214, allocations: 464.5 kB / 445.2 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.2214, allocations: 8.562 kB / 445.2 MB, free: 5.906 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.2215, allocations: 39.12 kB / 445.3 MB, free: 5.859 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.485e-06/0.2215, allocations: 0 / 445.3 MB, free: 5.859 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004826/0.2263, allocations: 2.466 MB / 447.8 MB, free: 3.305 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.2264, allocations: 111.5 kB / 447.9 MB, free: 3.168 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/0.2281, allocations: 1.298 MB / 449.2 MB, free: 1.855 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.649e-05/0.2281, allocations: 41.7 kB / 449.2 MB, free: 1.809 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005474/0.2287, allocations: 0.8453 MB / 450 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.2289, allocations: 256.3 kB / 450.3 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.2289, allocations: 24 kB / 450.3 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.229, allocations: 353.9 kB / 450.7 MB, free: 332 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005809/0.2296, allocations: 290.5 kB / 450.9 MB, free: 40 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008289/0.2305, allocations: 0.7382 MB / 451.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.2319, allocations: 1.1 MB / 452.8 MB, free: 13.78 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.232, allocations: 8 kB / 452.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002365/0.2343, allocations: 1.291 MB / 454.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.2344, allocations: 12 kB / 454.1 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/0.2344, allocations: 16.5 kB / 454.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005073/0.2349, allocations: 146.5 kB / 454.3 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008163/0.2358, allocations: 263.5 kB / 454.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003472/0.2392, allocations: 4.328 MB / 458.8 MB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.2402, allocations: 63.88 kB / 458.9 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.831e-05/0.2403, allocations: 52 kB / 459 MB, free: 7.176 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005892/0.2409, allocations: 361.5 kB / 459.3 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.241, allocations: 134.3 kB / 459.4 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.2428, allocations: 0.8725 MB / 460.3 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.2428, allocations: 11.94 kB / 460.3 MB, free: 5.773 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.2428, allocations: 4.125 kB / 460.3 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.2428, allocations: 3.984 kB / 460.3 MB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/0.2466, allocations: 2.369 MB / 462.7 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.2466, allocations: 8.062 kB / 462.7 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005759/0.2472, allocations: 131.8 kB / 462.8 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004295/0.2476, allocations: 138.5 kB / 463 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.2477, allocations: 23.98 kB / 463 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003561/0.2512, allocations: 4.447 MB / 467.4 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.2512, allocations: 7.938 kB / 467.4 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.2535, allocations: 1.346 MB / 468.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004187/0.2539, allocations: 279.4 kB / 469.1 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.2541, allocations: 19.98 kB / 469.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006162/0.2547, allocations: 47.97 kB / 469.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.2548, allocations: 64.36 kB / 469.2 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.886e-05/0.2549, allocations: 20 kB / 469.2 MB, free: 12.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001175/0.2561, allocations: 0.8741 MB / 470.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2561, allocations: 0 / 470.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001276/0.2574, allocations: 331.9 kB / 470.4 MB, free: 11.05 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002061/0.2576, allocations: 131.1 kB / 470.5 MB, free: 10.92 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.2594, allocations: 1.133 MB / 471.7 MB, free: 9.754 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.2594, allocations: 0 / 471.7 MB, free: 9.754 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009595/0.2603, allocations: 0.7187 MB / 472.4 MB, free: 9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.2625, allocations: 342.3 kB / 472.7 MB, free: 8.676 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005407/0.2679, allocations: 3.624 MB / 476.4 MB, free: 4.957 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007918/0.2687, allocations: 1.214 MB / 477.6 MB, free: 3.715 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002932/0.269, allocations: 99.42 kB / 477.7 MB, free: 3.621 MB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.269, allocations: 0 / 477.7 MB, free: 3.621 MB / 346.7 MB Notification: Performance of Templates: time 0.1839/0.453, allocations: 40.63 MB / 0.5061 GB, free: 93.04 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches