Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001295, allocations: 111.4 kB / 17.74 MB, free: 5.23 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.001131/0.001131, allocations: 188.5 kB / 18.66 MB, free: 4.312 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009862/0.0009862, allocations: 43.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2459, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007866/0.2538, allocations: 7.131 MB / 408.5 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.2577, allocations: 2.345 MB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006371/0.2584, allocations: 19.94 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.2597, allocations: 0.4892 MB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000919/0.2606, allocations: 381 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003949/0.261, allocations: 195.8 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.2623, allocations: 1.21 MB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006762/0.263, allocations: 0.4998 MB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005522/0.2636, allocations: 466.1 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005133/0.2641, allocations: 497.8 kB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.2642, allocations: 116 kB / 414.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.2645, allocations: 156 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.2647, allocations: 231.1 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004288/0.2651, allocations: 0.5405 MB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.2664, allocations: 1.434 MB / 417.1 MB, free: 9.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2664, allocations: 3.938 kB / 417.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2665, allocations: 0 / 417.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.2665, allocations: 0 / 417.1 MB, free: 9.109 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001922/0.2684, allocations: 1.25 MB / 418.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2684, allocations: 11.89 kB / 418.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004698/0.2689, allocations: 143.7 kB / 418.5 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009487/0.2699, allocations: 0.6455 MB / 419.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.2699, allocations: 58.38 kB / 419.2 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.2701, allocations: 84.38 kB / 419.3 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.2713, allocations: 0.7793 MB / 420.1 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.2714, allocations: 7.891 kB / 420.1 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.217e-05/0.2714, allocations: 36 kB / 420.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.2715, allocations: 23.98 kB / 420.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.2725, allocations: 0.5192 MB / 420.6 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003892/0.2764, allocations: 3.364 MB / 424 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.2769, allocations: 239.8 kB / 424.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002372/0.2771, allocations: 112.8 kB / 424.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.2772, allocations: 3.938 kB / 424.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.2772, allocations: 42.5 kB / 424.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.873e-06/0.2772, allocations: 0 / 424.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002004/0.2792, allocations: 1.048 MB / 425.4 MB, free: 340 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.2793, allocations: 81.34 kB / 425.5 MB, free: 240 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009204/0.2802, allocations: 0.7387 MB / 426.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.2802, allocations: 33.7 kB / 426.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000314/0.2806, allocations: 0.4904 MB / 426.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.2806, allocations: 102.5 kB / 426.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.2808, allocations: 118.1 kB / 427 MB, free: 14.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.281, allocations: 378.8 kB / 427.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.2812, allocations: 121.2 kB / 427.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.2817, allocations: 426.2 kB / 427.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007413/0.2824, allocations: 0.5675 MB / 428.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.2825, allocations: 4 kB / 428.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001054/0.2835, allocations: 0.6114 MB / 429.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2835, allocations: 12 kB / 429.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.2836, allocations: 8 kB / 429.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.2837, allocations: 32.86 kB / 429.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.2842, allocations: 139.7 kB / 429.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009929/0.2852, allocations: 1.386 MB / 430.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.2857, allocations: 36.11 kB / 430.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.2857, allocations: 39.94 kB / 430.7 MB, free: 10.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003009/0.286, allocations: 235.2 kB / 431 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-05/0.2861, allocations: 75.06 kB / 431 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000636/0.2868, allocations: 325.6 kB / 431.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.2868, allocations: 8.047 kB / 431.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2868, allocations: 3.984 kB / 431.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2868, allocations: 0 / 431.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.2883, allocations: 1.09 MB / 432.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.2884, allocations: 4 kB / 432.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.2886, allocations: 59.91 kB / 432.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.542e-05/0.2887, allocations: 24.84 kB / 432.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.2888, allocations: 4 kB / 432.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008975/0.2897, allocations: 1.371 MB / 433.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.2897, allocations: 12.03 kB / 433.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008667/0.2905, allocations: 0.5531 MB / 434.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.2908, allocations: 168.3 kB / 434.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.126e-05/0.2909, allocations: 8 kB / 434.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.2912, allocations: 27.97 kB / 434.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.764e-05/0.2913, allocations: 27.91 kB / 434.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.2913, allocations: 4 kB / 434.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006603/0.292, allocations: 0.4991 MB / 435.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.292, allocations: 0 / 435.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.2926, allocations: 167.9 kB / 435.4 MB, free: 5.609 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000197/0.2928, allocations: 133 kB / 435.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008472/0.2937, allocations: 466.7 kB / 436 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2937, allocations: 1.938 kB / 436 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.2941, allocations: 235 kB / 436.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008774/0.295, allocations: 182.8 kB / 436.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.2971, allocations: 1.441 MB / 437.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.2976, allocations: 0.9411 MB / 438.8 MB, free: 2.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.2977, allocations: 59.36 kB / 438.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2977, allocations: 0 / 438.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Templates: time 0.01599/0.3137, allocations: 13.47 MB / 452.3 MB, free: 4.625 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches