Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 62.61 kB / 306.9 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08946/0.09062, allocations: 50.52 MB / 357.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009523/0.1002, allocations: 8.068 MB / 365.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004869/0.1051, allocations: 2.646 MB / 368.2 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.1064, allocations: 27.94 kB / 368.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001924/0.1083, allocations: 498 kB / 368.7 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001742/0.1101, allocations: 409.1 kB / 369.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007048/0.1108, allocations: 215.8 kB / 369.3 MB, free: 2.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.1127, allocations: 1.397 MB / 370.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008513/0.1136, allocations: 0.5006 MB / 371.2 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000861/0.1145, allocations: 0.4977 MB / 371.7 MB, free: 172 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1567/0.2712, allocations: 0.5624 MB / 372.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004245/0.2717, allocations: 85.47 kB / 372.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006387/0.2723, allocations: 125.6 kB / 372.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000278/0.2726, allocations: 224.5 kB / 372.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.2737, allocations: 0.6097 MB / 373.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001724/0.2755, allocations: 1.386 MB / 374.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2755, allocations: 0 / 374.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2755, allocations: 1.75 kB / 374.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.497e-05/0.2756, allocations: 4.656 kB / 374.7 MB, free: 10.77 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003487/0.2791, allocations: 1.452 MB / 376.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2791, allocations: 10.12 kB / 376.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008402/0.28, allocations: 185.6 kB / 376.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.2813, allocations: 0.7304 MB / 377 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.374e-05/0.2814, allocations: 75.53 kB / 377.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.2816, allocations: 99.86 kB / 377.2 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.2833, allocations: 0.9349 MB / 378.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.73e-05/0.2834, allocations: 6.188 kB / 378.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.255e-05/0.2835, allocations: 39.81 kB / 378.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.2835, allocations: 24.66 kB / 378.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.2849, allocations: 0.6331 MB / 378.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.2901, allocations: 3.922 MB / 382.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005995/0.2907, allocations: 437.7 kB / 383.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.2913, allocations: 257.5 kB / 383.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.2913, allocations: 16.36 kB / 383.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.2913, allocations: 38.2 kB / 383.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.755e-06/0.2913, allocations: 0 / 383.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002738/0.2941, allocations: 1.384 MB / 384.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.2941, allocations: 89.22 kB / 385 MB, free: 5.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.2955, allocations: 0.8275 MB / 385.8 MB, free: 5.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.2955, allocations: 32.66 kB / 385.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/0.2958, allocations: 0.5622 MB / 386.4 MB, free: 5.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.969e-05/0.2959, allocations: 154.5 kB / 386.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.2961, allocations: 131.1 kB / 386.7 MB, free: 4.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.744e-05/0.2962, allocations: 331.6 kB / 387 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.2965, allocations: 164.3 kB / 387.2 MB, free: 4.457 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004153/0.2969, allocations: 465.7 kB / 387.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007485/0.2977, allocations: 0.6586 MB / 388.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.2977, allocations: 3.281 kB / 388.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001356/0.2991, allocations: 0.7668 MB / 389 MB, free: 3.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.2991, allocations: 9.969 kB / 389 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.2991, allocations: 9.938 kB / 389.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002663/0.2994, allocations: 84.05 kB / 389.1 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/0.2999, allocations: 156.4 kB / 389.3 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.3015, allocations: 2.878 MB / 392.2 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007108/0.3023, allocations: 33.41 kB / 392.2 MB, free: 360 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.444e-05/0.3023, allocations: 40.31 kB / 392.2 MB, free: 348 kB / 302.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 (84): * Single equations (assignments): 82 * 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.0003814/0.3027, allocations: 265.7 kB / 392.5 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.3029, allocations: 84.38 kB / 392.6 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009817/0.3039, allocations: 493.6 kB / 393.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3039, allocations: 5.062 kB / 393.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3039, allocations: 5.766 kB / 393.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3039, allocations: 3.891 kB / 393.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.3063, allocations: 1.441 MB / 394.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3063, allocations: 1.5 kB / 394.5 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.3067, allocations: 67.17 kB / 394.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002201/0.3069, allocations: 76.56 kB / 394.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.3069, allocations: 9 kB / 394.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.3092, allocations: 2.862 MB / 397.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3092, allocations: 3.25 kB / 397.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.3105, allocations: 0.758 MB / 398.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004225/0.311, allocations: 201.3 kB / 398.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002055/0.3112, allocations: 15.97 kB / 398.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005082/0.3117, allocations: 30.89 kB / 398.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/0.3118, allocations: 32.89 kB / 398.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.3118, allocations: 14.19 kB / 398.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009253/0.3128, allocations: 0.565 MB / 399.1 MB, free: 11.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3128, allocations: 0 / 399.1 MB, free: 11.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001022/0.3138, allocations: 201.8 kB / 399.3 MB, free: 11.19 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 (38): * Single equations (assignments): 36 * 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.0002262/0.314, allocations: 124.5 kB / 399.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.3152, allocations: 0.6876 MB / 400.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.3153, allocations: 0.625 kB / 400.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006555/0.3159, allocations: 442.2 kB / 400.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.3173, allocations: 216.1 kB / 400.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.3207, allocations: 2.168 MB / 403 MB, free: 8.719 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006719/0.3214, allocations: 1.003 MB / 404 MB, free: 7.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.3216, allocations: 67.95 kB / 404 MB, free: 7.867 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3216, allocations: 0 / 404 MB, free: 7.867 MB / 318.1 MB Notification: Performance of Templates: time 0.02442/0.346, allocations: 20.86 MB / 424.9 MB, free: 5.219 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches