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.0009915/0.0009918, allocations: 95.69 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 207.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 8 kB / 306.6 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1067, allocations: 51.5 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1824/0.2891, allocations: 14.97 MB / 373 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008567/0.2977, allocations: 5.575 MB / 378.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.2992, allocations: 59.41 kB / 378.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.3014, allocations: 1.082 MB / 379.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002446/0.3039, allocations: 1.245 MB / 381 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.3049, allocations: 430 kB / 381.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003425/0.3084, allocations: 2.788 MB / 384.2 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.3098, allocations: 1.163 MB / 385.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.3114, allocations: 1.142 MB / 386.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.3128, allocations: 1.279 MB / 387.8 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002839/0.313, allocations: 166.4 kB / 388 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005765/0.3136, allocations: 208.8 kB / 388.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003582/0.314, allocations: 491 kB / 388.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005233/0.3145, allocations: 0.639 MB / 389.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002519/0.3171, allocations: 3.572 MB / 392.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.3171, allocations: 0 / 392.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3171, allocations: 0 / 392.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.871e-05/0.3171, allocations: 0 / 392.9 MB, free: 5.199 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.004096/0.3212, allocations: 2.819 MB / 395.7 MB, free: 3.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.3213, allocations: 14.03 kB / 395.7 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001425/0.3227, allocations: 484.1 kB / 396.2 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002473/0.3252, allocations: 1.678 MB / 397.8 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3253, allocations: 193.7 kB / 398 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002962/0.3256, allocations: 265 kB / 398.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003509/0.3291, allocations: 2.433 MB / 400.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.917e-05/0.3292, allocations: 16.62 kB / 400.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001905/0.3294, allocations: 108.2 kB / 400.8 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-05/0.3295, allocations: 64.75 kB / 400.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002929/0.3324, allocations: 1.635 MB / 402.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.3441, allocations: 10.65 MB / 413.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.3454, allocations: 1.055 MB / 414.2 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.3454, allocations: 8.656 kB / 414.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/0.3455, allocations: 47.17 kB / 414.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 2.385e-06/0.3455, allocations: 4 kB / 414.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.004724/0.3502, allocations: 2.942 MB / 417.2 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.005e-05/0.3503, allocations: 171.2 kB / 417.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002615/0.3529, allocations: 2.139 MB / 419.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.353, allocations: 41.7 kB / 419.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009376/0.3539, allocations: 1.474 MB / 421.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.3542, allocations: 335.4 kB / 421.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/0.3542, allocations: 32 kB / 421.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3544, allocations: 376 kB / 421.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006239/0.355, allocations: 367.8 kB / 422.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.3561, allocations: 1.227 MB / 423.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008634/0.357, allocations: 0.5772 MB / 424 MB, free: 9.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.357, allocations: 8 kB / 424 MB, free: 9.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002604/0.3597, allocations: 1.822 MB / 425.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.004062/0.3637, allocations: 12.3 MB / 438.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-05/0.3638, allocations: 32 kB / 438.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005011/0.3643, allocations: 159.4 kB / 438.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.3654, allocations: 415.3 kB / 438.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003807/0.3692, allocations: 5.385 MB / 444.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.3708, allocations: 104 kB / 444.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.852e-05/0.3709, allocations: 92 kB / 444.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.3709, allocations: 4 kB / 444.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002253/0.3732, allocations: 1.573 MB / 445.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.617e-05/0.3732, allocations: 32 kB / 445.9 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.3736, allocations: 164 kB / 446 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.3747, allocations: 407.3 kB / 446.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003354/0.378, allocations: 5.371 MB / 451.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3793, allocations: 87.95 kB / 451.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.3794, allocations: 94.41 kB / 452 MB, free: 11.11 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009557/0.3804, allocations: 0.5901 MB / 452.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002574/0.3807, allocations: 229.2 kB / 452.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.3822, allocations: 0.9185 MB / 453.7 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.3823, allocations: 8 kB / 453.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3823, allocations: 0 / 453.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3823, allocations: 7.984 kB / 453.7 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004022/0.3863, allocations: 3.105 MB / 456.8 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.3863, allocations: 8.344 kB / 456.8 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005806/0.3869, allocations: 163.8 kB / 457 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003357/0.3873, allocations: 127.3 kB / 457.1 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.3873, allocations: 31.94 kB / 457.1 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003223/0.3906, allocations: 5.332 MB / 462.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.3906, allocations: 11.94 kB / 462.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/0.3927, allocations: 1.959 MB / 464.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005412/0.3933, allocations: 374.1 kB / 464.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/0.3935, allocations: 27.94 kB / 464.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/0.3944, allocations: 63.95 kB / 464.9 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.3945, allocations: 80.36 kB / 465 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.3945, allocations: 32 kB / 465 MB, free: 13.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001786/0.3963, allocations: 1.409 MB / 466.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3963, allocations: 0 / 466.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002707/0.399, allocations: 0.9297 MB / 467.4 MB, free: 10.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002358/0.3993, allocations: 147 kB / 467.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003303/0.4026, allocations: 2.697 MB / 470.2 MB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.4026, allocations: 4 kB / 470.2 MB, free: 7.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009297/0.4035, allocations: 0.8235 MB / 471 MB, free: 6.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.4057, allocations: 0.5622 MB / 471.6 MB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006218/0.4119, allocations: 5.064 MB / 476.6 MB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.4131, allocations: 1.626 MB / 478.3 MB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001229/0.4143, allocations: 323.2 kB / 478.6 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.4146, allocations: 143.4 kB / 478.7 MB, free: 15.07 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4146, allocations: 0 / 478.7 MB, free: 15.07 MB / 398.1 MB Notification: Performance of Templates: time 0.04111/0.4557, allocations: 25.49 MB / 0.4924 GB, free: 5.859 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches