Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001136/0.001136, allocations: 108.9 kB / 18.36 MB, free: 4.742 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.001069/0.001069, allocations: 188.2 kB / 19.29 MB, free: 3.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 47.92 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09434, allocations: 46.61 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.1931/0.2875, allocations: 7.091 MB / 382.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003907/0.2914, allocations: 2.389 MB / 385.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000793/0.2922, allocations: 20.44 kB / 385.3 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001435/0.2937, allocations: 0.4926 MB / 385.8 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009993/0.2947, allocations: 379 kB / 386.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.2952, allocations: 210.6 kB / 386.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.2965, allocations: 1.2 MB / 387.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006615/0.2971, allocations: 0.5042 MB / 388 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006272/0.2978, allocations: 457.1 kB / 388.5 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005302/0.2983, allocations: 0.4883 MB / 389 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.2985, allocations: 112.8 kB / 389.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003524/0.2988, allocations: 154.8 kB / 389.2 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.299, allocations: 228.8 kB / 389.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004683/0.2995, allocations: 0.5409 MB / 390 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.3011, allocations: 1.43 MB / 391.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3011, allocations: 5.125 kB / 391.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3011, allocations: 0 / 391.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.012e-05/0.3011, allocations: 0 / 391.4 MB, free: 5.691 MB / 318.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.002008/0.3032, allocations: 1.242 MB / 392.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3032, allocations: 13.27 kB / 392.7 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004905/0.3037, allocations: 144.1 kB / 392.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009649/0.3047, allocations: 0.6518 MB / 393.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/0.3047, allocations: 64.33 kB / 393.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.3049, allocations: 80.44 kB / 393.6 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.3061, allocations: 0.7822 MB / 394.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.3061, allocations: 3.234 kB / 394.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.089e-05/0.3062, allocations: 30.72 kB / 394.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.3062, allocations: 23.5 kB / 394.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009797/0.3072, allocations: 0.5209 MB / 395 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003846/0.3111, allocations: 3.374 MB / 398.4 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000488/0.3116, allocations: 231.8 kB / 398.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.3118, allocations: 117 kB / 398.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.3119, allocations: 3.078 kB / 398.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.3119, allocations: 40.91 kB / 398.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.683e-06/0.3119, allocations: 0 / 398.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001989/0.3139, allocations: 1.045 MB / 399.8 MB, free: 340 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.3139, allocations: 80.41 kB / 399.9 MB, free: 244 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009877/0.3149, allocations: 0.7369 MB / 400.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.315, allocations: 27.58 kB / 400.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003634/0.3153, allocations: 0.4954 MB / 401.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.845e-05/0.3154, allocations: 107.6 kB / 401.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.3156, allocations: 113.7 kB / 401.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3158, allocations: 382.6 kB / 401.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.316, allocations: 125.7 kB / 401.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004611/0.3165, allocations: 414.5 kB / 402.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007441/0.3172, allocations: 0.5751 MB / 402.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3173, allocations: 2.75 kB / 402.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001049/0.3183, allocations: 0.6105 MB / 403.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.3184, allocations: 10.19 kB / 403.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.3184, allocations: 12.84 kB / 403.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.3185, allocations: 34.2 kB / 403.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004237/0.319, allocations: 140.1 kB / 403.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.32, allocations: 1.385 MB / 405 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000511/0.3206, allocations: 35.62 kB / 405 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.3206, allocations: 30.12 kB / 405.1 MB, free: 12.25 MB / 334.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.0003319/0.321, allocations: 239.3 kB / 405.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.3211, allocations: 69.53 kB / 405.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006379/0.3217, allocations: 325.5 kB / 405.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.3217, allocations: 3.219 kB / 405.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3217, allocations: 1.125 kB / 405.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3217, allocations: 1.922 kB / 405.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.3235, allocations: 1.102 MB / 406.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3235, allocations: 2.094 kB / 406.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.3238, allocations: 59.28 kB / 406.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.455e-05/0.3239, allocations: 23.78 kB / 406.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.3239, allocations: 8.281 kB / 406.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009325/0.3249, allocations: 1.378 MB / 408.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3249, allocations: 5.25 kB / 408.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008762/0.3258, allocations: 0.5542 MB / 408.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002323/0.326, allocations: 174.2 kB / 409 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.737e-05/0.3261, allocations: 11.67 kB / 409 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/0.3264, allocations: 18.3 kB / 409 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/0.3265, allocations: 26.09 kB / 409.1 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.3265, allocations: 7.906 kB / 409.1 MB, free: 9.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006872/0.3272, allocations: 0.5024 MB / 409.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3272, allocations: 7.938 kB / 409.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007439/0.328, allocations: 157.7 kB / 409.7 MB, free: 8.773 MB / 334.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.0002179/0.3282, allocations: 121.2 kB / 409.8 MB, free: 8.664 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008943/0.3291, allocations: 463 kB / 410.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.3291, allocations: 5.438 kB / 410.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.3295, allocations: 239.8 kB / 410.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008827/0.3304, allocations: 183.9 kB / 410.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.3327, allocations: 1.447 MB / 412.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000541/0.3333, allocations: 0.9477 MB / 413.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.3334, allocations: 50.38 kB / 413.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3334, allocations: 0 / 413.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of Templates: time 0.01923/0.3527, allocations: 13.38 MB / 426.5 MB, free: 11.7 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches