Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009218/0.0009218, allocations: 96.09 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 204.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.7 MB / 247.5 MB, free: 11.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002202/0.0002203, allocations: 8 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08753, allocations: 51.52 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1672/0.2548, allocations: 17.91 MB / 377.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008324/0.2631, allocations: 5.627 MB / 383.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002125/0.2653, allocations: 65.44 kB / 383.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003161/0.2685, allocations: 1.14 MB / 384.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003631/0.2721, allocations: 1.048 MB / 385.7 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001364/0.2735, allocations: 0.587 MB / 386.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004168/0.2777, allocations: 3.722 MB / 390 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.2795, allocations: 1.336 MB / 391.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002083/0.2816, allocations: 1.209 MB / 392.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001672/0.2833, allocations: 1.361 MB / 393.9 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003283/0.2836, allocations: 174.3 kB / 394.1 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006253/0.2843, allocations: 218.5 kB / 394.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000352/0.2846, allocations: 0.5079 MB / 394.8 MB, free: 4.117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001308/0.2859, allocations: 1.565 MB / 396.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002453/0.2884, allocations: 3.622 MB / 400 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2884, allocations: 0.9375 kB / 400 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2884, allocations: 0 / 400 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.009e-05/0.2885, allocations: 0 / 400 MB, free: 0.6719 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.004671/0.2932, allocations: 2.809 MB / 402.8 MB, free: 14.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2932, allocations: 9.219 kB / 402.8 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001595/0.2948, allocations: 485.7 kB / 403.3 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002838/0.2976, allocations: 1.704 MB / 405 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.2978, allocations: 194.1 kB / 405.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002889/0.2981, allocations: 274.8 kB / 405.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003837/0.3019, allocations: 2.472 MB / 407.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.244e-05/0.302, allocations: 10.84 kB / 407.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001822/0.3022, allocations: 108.5 kB / 408 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-05/0.3022, allocations: 65.91 kB / 408.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002955/0.3052, allocations: 1.665 MB / 409.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01261/0.3178, allocations: 10.7 MB / 420.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.3191, allocations: 1.069 MB / 421.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005897/0.3197, allocations: 380.5 kB / 421.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.3198, allocations: 8.656 kB / 421.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.3198, allocations: 43.22 kB / 422 MB, free: 13.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.605e-06/0.3199, allocations: 0 / 422 MB, free: 13.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.005319/0.3252, allocations: 2.972 MB / 424.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/0.3253, allocations: 167.2 kB / 425.1 MB, free: 9.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002961/0.3282, allocations: 2.202 MB / 427.3 MB, free: 7.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.3283, allocations: 41.7 kB / 427.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009732/0.3293, allocations: 1.474 MB / 428.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.3295, allocations: 331.4 kB / 429.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.3297, allocations: 141.6 kB / 429.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.893e-05/0.3298, allocations: 301.1 kB / 429.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000648/0.3304, allocations: 375.8 kB / 429.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.3316, allocations: 1.243 MB / 431.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.3336, allocations: 1.742 MB / 432.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/0.3336, allocations: 8 kB / 432.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002946/0.3365, allocations: 1.87 MB / 434.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005731/0.3371, allocations: 0.9532 MB / 435.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/0.3372, allocations: 28 kB / 435.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004846/0.3377, allocations: 159.3 kB / 435.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.3388, allocations: 419.3 kB / 436.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003661/0.3425, allocations: 5.348 MB / 441.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.3442, allocations: 99.91 kB / 441.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.3443, allocations: 96 kB / 441.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.3443, allocations: 6.969 kB / 441.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002353/0.3467, allocations: 1.597 MB / 443.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.188e-05/0.3467, allocations: 35.94 kB / 443.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003985/0.3471, allocations: 156 kB / 443.7 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.3483, allocations: 399.3 kB / 444.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.3517, allocations: 5.352 MB / 449.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.3534, allocations: 87.94 kB / 449.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.3535, allocations: 96 kB / 449.6 MB, free: 14.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001118/0.3546, allocations: 0.5861 MB / 450.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.355, allocations: 229.2 kB / 450.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.3566, allocations: 0.9302 MB / 451.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3567, allocations: 8 kB / 451.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.3567, allocations: 4 kB / 451.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3567, allocations: 7.922 kB / 451.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004876/0.3616, allocations: 3.144 MB / 454.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.3616, allocations: 12.03 kB / 454.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006139/0.3622, allocations: 159.8 kB / 454.7 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004214/0.3627, allocations: 127.3 kB / 454.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.69e-05/0.3627, allocations: 24 kB / 454.8 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00432/0.3671, allocations: 5.316 MB / 460.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.3671, allocations: 7.938 kB / 460.1 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.3697, allocations: 1.522 MB / 461.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.3708, allocations: 378.2 kB / 462 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005841/0.3714, allocations: 28 kB / 462.1 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.3725, allocations: 67.89 kB / 462.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.3727, allocations: 76.36 kB / 462.2 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.857e-05/0.3727, allocations: 39.92 kB / 462.2 MB, free: 1.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002286/0.375, allocations: 1.454 MB / 463.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.375, allocations: 0 / 463.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003115/0.3782, allocations: 0.9374 MB / 464.6 MB, free: 15.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002642/0.3784, allocations: 155.4 kB / 464.8 MB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004047/0.3825, allocations: 2.709 MB / 467.5 MB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.3825, allocations: 4.062 kB / 467.5 MB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.3839, allocations: 0.8311 MB / 468.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004965/0.3888, allocations: 0.5667 MB / 468.9 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007573/0.3964, allocations: 5.452 MB / 474.3 MB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.3977, allocations: 1.567 MB / 475.9 MB, free: 3.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/0.3982, allocations: 147.4 kB / 476.1 MB, free: 3.359 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3982, allocations: 0 / 476.1 MB, free: 3.359 MB / 382.1 MB Notification: Performance of Templates: time 0.2492/0.6474, allocations: 78.22 MB / 0.5413 GB, free: 143.1 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches