Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009813/0.0009815, allocations: 175.9 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007349/0.0007349, allocations: 93.2 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002918, allocations: 16 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2191, allocations: 47.57 MB / 375.1 MB, free: 45.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006095/0.2253, allocations: 7.209 MB / 382.3 MB, free: 39.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003904/0.2292, allocations: 2.545 MB / 384.9 MB, free: 37.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008092/0.23, allocations: 28.62 kB / 384.9 MB, free: 37.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.2313, allocations: 473.9 kB / 385.3 MB, free: 37.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.2324, allocations: 393.7 kB / 385.7 MB, free: 37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.2328, allocations: 163.8 kB / 385.9 MB, free: 36.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001408/0.2342, allocations: 1.387 MB / 387.3 MB, free: 36.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007082/0.235, allocations: 0.4916 MB / 387.8 MB, free: 35.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006728/0.2356, allocations: 464.8 kB / 388.2 MB, free: 35.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004776/0.2361, allocations: 0.5044 MB / 388.7 MB, free: 35.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.663e-05/0.2362, allocations: 71.94 kB / 388.8 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.2365, allocations: 111.9 kB / 388.9 MB, free: 34.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.2366, allocations: 195.1 kB / 389.1 MB, free: 34.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003767/0.237, allocations: 0.5926 MB / 389.7 MB, free: 34.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008094/0.2378, allocations: 1.359 MB / 391 MB, free: 32.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2378, allocations: 0 / 391 MB, free: 32.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2378, allocations: 0 / 391 MB, free: 32.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.2379, allocations: 0 / 391 MB, free: 32.69 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.00171/0.2396, allocations: 1.285 MB / 392.3 MB, free: 31.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2396, allocations: 12.03 kB / 392.3 MB, free: 31.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005617/0.2402, allocations: 191.3 kB / 392.5 MB, free: 31.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008893/0.2411, allocations: 0.7471 MB / 393.3 MB, free: 30.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.2412, allocations: 78 kB / 393.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.2413, allocations: 99.91 kB / 393.5 MB, free: 30.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.2426, allocations: 0.9464 MB / 394.4 MB, free: 29.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.2426, allocations: 4 kB / 394.4 MB, free: 29.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-05/0.2427, allocations: 43.94 kB / 394.4 MB, free: 29.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.2427, allocations: 24 kB / 394.5 MB, free: 29.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.2438, allocations: 0.6559 MB / 395.1 MB, free: 28.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004017/0.2479, allocations: 3.992 MB / 399.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.2485, allocations: 440.5 kB / 399.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004775/0.2489, allocations: 281.6 kB / 399.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.249, allocations: 4 kB / 399.8 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.249, allocations: 38.5 kB / 399.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 2.595e-06/0.249, allocations: 0 / 399.9 MB, free: 23.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002482/0.2515, allocations: 1.576 MB / 401.4 MB, free: 21.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.2516, allocations: 85.05 kB / 401.5 MB, free: 21.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000865/0.2524, allocations: 0.8332 MB / 402.4 MB, free: 20.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.2525, allocations: 33.7 kB / 402.4 MB, free: 20.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.2527, allocations: 0.5643 MB / 403 MB, free: 20.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.561e-05/0.2528, allocations: 161.7 kB / 403.1 MB, free: 20.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.481e-05/0.2528, allocations: 16 kB / 403.1 MB, free: 20.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.893e-05/0.2529, allocations: 334 kB / 403.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003055/0.2532, allocations: 181.8 kB / 403.6 MB, free: 19.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.2536, allocations: 479.6 kB / 404.1 MB, free: 18.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000716/0.2543, allocations: 0.6836 MB / 404.8 MB, free: 18.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2543, allocations: 4 kB / 404.8 MB, free: 18.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001084/0.2554, allocations: 0.7945 MB / 405.6 MB, free: 17.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.2555, allocations: 12 kB / 405.6 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.2555, allocations: 8 kB / 405.6 MB, free: 17.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002453/0.2557, allocations: 81.62 kB / 405.7 MB, free: 17.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004511/0.2562, allocations: 163.9 kB / 405.8 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.2578, allocations: 2.895 MB / 408.7 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.2583, allocations: 39.88 kB / 408.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.734e-05/0.2584, allocations: 36 kB / 408.8 MB, free: 13.84 MB / 298.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.0003432/0.2587, allocations: 265.6 kB / 409.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.902e-05/0.2588, allocations: 86.97 kB / 409.2 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008227/0.2596, allocations: 0.5068 MB / 409.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2597, allocations: 7.984 kB / 409.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2597, allocations: 4 kB / 409.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2597, allocations: 0 / 409.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.2614, allocations: 1.495 MB / 411.2 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.2614, allocations: 4 kB / 411.2 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.2617, allocations: 80.11 kB / 411.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001767/0.2619, allocations: 69.67 kB / 411.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.2619, allocations: 11.94 kB / 411.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001463/0.2634, allocations: 2.852 MB / 414.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2634, allocations: 4.031 kB / 414.2 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.2645, allocations: 0.8167 MB / 415 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.2647, allocations: 204 kB / 415.2 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.571e-05/0.2648, allocations: 8 kB / 415.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003908/0.2652, allocations: 36.11 kB / 415.2 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.2653, allocations: 43.88 kB / 415.3 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.2653, allocations: 12 kB / 415.3 MB, free: 6.898 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006141/0.266, allocations: 0.5693 MB / 415.9 MB, free: 6.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.266, allocations: 3.938 kB / 415.9 MB, free: 6.328 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007639/0.2667, allocations: 208 kB / 416.1 MB, free: 6.125 MB / 298.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.0001985/0.2669, allocations: 119.2 kB / 416.2 MB, free: 5.996 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.268, allocations: 0.698 MB / 416.9 MB, free: 5.273 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.268, allocations: 8.062 kB / 416.9 MB, free: 5.266 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005362/0.2685, allocations: 462 kB / 417.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.2698, allocations: 218.6 kB / 417.6 MB, free: 4.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.2721, allocations: 2.174 MB / 419.7 MB, free: 2.355 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.2725, allocations: 1.013 MB / 420.7 MB, free: 1.316 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.2727, allocations: 63.42 kB / 420.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2727, allocations: 0 / 420.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of Templates: time 0.02417/0.2969, allocations: 21.13 MB / 441.9 MB, free: 12.11 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches