Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001322/0.001322, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009992/0.0009992, allocations: 46.36 kB / 299.9 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08186/0.08288, allocations: 49.45 MB / 349.4 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.00883/0.09175, allocations: 8.043 MB / 357.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004517/0.09631, allocations: 2.626 MB / 360.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.09735, allocations: 23.94 kB / 360.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.09891, allocations: 0.4941 MB / 360.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.1001, allocations: 401.2 kB / 361 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004476/0.1006, allocations: 215.8 kB / 361.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001481/0.1021, allocations: 1.401 MB / 362.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006616/0.1027, allocations: 0.4967 MB / 363.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005908/0.1034, allocations: 0.4978 MB / 363.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004992/0.1039, allocations: 0.5598 MB / 364.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.104, allocations: 84 kB / 364.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002982/0.1043, allocations: 128 kB / 364.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.1045, allocations: 227 kB / 364.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00051/0.105, allocations: 0.6102 MB / 365.2 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001354/0.1064, allocations: 1.662 MB / 366.8 MB, free: 3.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1064, allocations: 0 / 366.8 MB, free: 3.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1064, allocations: 0 / 366.8 MB, free: 3.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.1064, allocations: 4 kB / 366.8 MB, free: 3.289 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.002276/0.1087, allocations: 1.457 MB / 368.3 MB, free: 1.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1087, allocations: 11.97 kB / 368.3 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007496/0.1095, allocations: 183.4 kB / 368.5 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.1105, allocations: 0.7261 MB / 369.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.268e-05/0.1106, allocations: 74 kB / 369.3 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.1107, allocations: 96 kB / 369.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.153/0.2637, allocations: 0.929 MB / 370.3 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.288e-05/0.2638, allocations: 9.641 kB / 370.3 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.722e-05/0.2639, allocations: 42.22 kB / 370.4 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/0.264, allocations: 25.88 kB / 370.4 MB, free: 25.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.2653, allocations: 0.6335 MB / 371 MB, free: 25.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004848/0.2702, allocations: 3.917 MB / 374.9 MB, free: 22.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006171/0.2708, allocations: 446.6 kB / 375.4 MB, free: 22.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004996/0.2713, allocations: 267.9 kB / 375.6 MB, free: 22.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.2713, allocations: 3.922 kB / 375.6 MB, free: 22.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.2714, allocations: 38.45 kB / 375.7 MB, free: 22.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.264e-06/0.2714, allocations: 0 / 375.7 MB, free: 22.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002354/0.2737, allocations: 1.379 MB / 377.1 MB, free: 21.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.2738, allocations: 90.14 kB / 377.1 MB, free: 21.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.2748, allocations: 0.8305 MB / 378 MB, free: 20.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.2749, allocations: 36.3 kB / 378 MB, free: 20.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002896/0.2751, allocations: 0.5546 MB / 378.6 MB, free: 20.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.947e-05/0.2752, allocations: 160.3 kB / 378.7 MB, free: 20.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.2754, allocations: 131 kB / 378.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.088e-05/0.2755, allocations: 333.7 kB / 379.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.2758, allocations: 168.3 kB / 379.3 MB, free: 19.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.2762, allocations: 462.2 kB / 379.8 MB, free: 19.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007482/0.277, allocations: 0.6504 MB / 380.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.277, allocations: 2.844 kB / 380.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001273/0.2783, allocations: 0.7705 MB / 381.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.2783, allocations: 12.56 kB / 381.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.2783, allocations: 9.344 kB / 381.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000249/0.2786, allocations: 81.16 kB / 381.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.2791, allocations: 154.7 kB / 381.5 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.2808, allocations: 2.881 MB / 384.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005114/0.2813, allocations: 28.36 kB / 384.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.2814, allocations: 36.77 kB / 384.4 MB, free: 15.67 MB / 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.0003145/0.2817, allocations: 257.2 kB / 384.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.2818, allocations: 88.31 kB / 384.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009384/0.2828, allocations: 489.7 kB / 385.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.2828, allocations: 4.188 kB / 385.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.2828, allocations: 2.188 kB / 385.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.2828, allocations: 2.766 kB / 385.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.2852, allocations: 1.442 MB / 386.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.2852, allocations: 2.312 kB / 386.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.2856, allocations: 70.94 kB / 386.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/0.2858, allocations: 76.52 kB / 386.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.2858, allocations: 8.641 kB / 386.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.2876, allocations: 2.859 MB / 389.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2876, allocations: 6.562 kB / 389.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.2887, allocations: 0.7756 MB / 390.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.2889, allocations: 199.4 kB / 390.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.289, allocations: 12.19 kB / 390.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004043/0.2894, allocations: 24.98 kB / 390.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.979e-05/0.2895, allocations: 37.52 kB / 390.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.2895, allocations: 20.06 kB / 390.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007972/0.2903, allocations: 0.5639 MB / 391.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2903, allocations: 0 / 391.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008678/0.2912, allocations: 204.7 kB / 391.5 MB, free: 10.57 MB / 302.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.0001787/0.2914, allocations: 123.5 kB / 391.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.2925, allocations: 0.679 MB / 392.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.2925, allocations: 4 kB / 392.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005623/0.293, allocations: 434.4 kB / 392.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.2942, allocations: 217.6 kB / 393 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.2969, allocations: 2.14 MB / 395.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.2973, allocations: 1.005 MB / 396.1 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004072/0.2978, allocations: 106.5 kB / 396.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.2979, allocations: 58 kB / 396.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2979, allocations: 0 / 396.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01602/0.3139, allocations: 10.02 MB / 406.3 MB, free: 296 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches