Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.456/1.456, allocations: 227.7 MB / 246.6 MB, free: 10.6 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 65.45 kB / 306.6 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1019, allocations: 50.54 MB / 357.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01453/0.1164, allocations: 12.07 MB / 369.2 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1738/0.2903, allocations: 3.268 MB / 372.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.2919, allocations: 39.72 kB / 372.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.2936, allocations: 0.5695 MB / 373 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001545/0.2951, allocations: 0.6343 MB / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007117/0.2958, allocations: 352.8 kB / 374 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002229/0.2981, allocations: 2.279 MB / 376.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.2991, allocations: 0.8576 MB / 377.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001305/0.3004, allocations: 0.8222 MB / 378 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008584/0.3013, allocations: 0.9252 MB / 378.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002194/0.3015, allocations: 140.2 kB / 379 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004643/0.302, allocations: 180.6 kB / 379.2 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002995/0.3023, allocations: 364.5 kB / 379.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009536/0.3033, allocations: 0.9901 MB / 380.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002691/0.306, allocations: 2.724 MB / 383.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.306, allocations: 0 / 383.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.306, allocations: 0 / 383.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.99e-05/0.3061, allocations: 7.938 kB / 383.3 MB, free: 7.547 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004006/0.3101, allocations: 2.158 MB / 385.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3101, allocations: 8.375 kB / 385.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009212/0.3111, allocations: 278.7 kB / 385.7 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.3126, allocations: 1.112 MB / 386.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.568e-05/0.3127, allocations: 113 kB / 387 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002091/0.3129, allocations: 157.2 kB / 387.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.3154, allocations: 1.506 MB / 388.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.008e-05/0.3154, allocations: 10.44 kB / 388.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3155, allocations: 61.97 kB / 388.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.641e-05/0.3156, allocations: 39.09 kB / 388.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002041/0.3176, allocations: 1.05 MB / 389.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007862/0.3255, allocations: 6.294 MB / 396.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.3273, allocations: 0.6173 MB / 396.7 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009867/0.3284, allocations: 467 kB / 397.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-05/0.3284, allocations: 7.438 kB / 397.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.3285, allocations: 47.19 kB / 397.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.875e-06/0.3285, allocations: 0 / 397.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005945/0.3344, allocations: 2.361 MB / 399.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.164e-05/0.3345, allocations: 115.6 kB / 399.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002102/0.3367, allocations: 1.309 MB / 401 MB, free: 11.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.413e-05/0.3367, allocations: 36.73 kB / 401 MB, free: 11.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007055/0.3374, allocations: 0.846 MB / 401.9 MB, free: 11.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002285/0.3377, allocations: 262.8 kB / 402.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003053/0.338, allocations: 203.2 kB / 402.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.3382, allocations: 357 kB / 402.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006043/0.3388, allocations: 279.4 kB / 402.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.3399, allocations: 0.7368 MB / 403.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.3416, allocations: 1.089 MB / 404.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.3416, allocations: 4.719 kB / 404.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00257/0.3442, allocations: 1.26 MB / 406 MB, free: 7.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.3442, allocations: 12 kB / 406 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/0.3442, allocations: 24 kB / 406.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005915/0.3448, allocations: 130.5 kB / 406.2 MB, free: 7.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008951/0.3457, allocations: 259.6 kB / 406.5 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004703/0.3505, allocations: 4.273 MB / 410.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.3516, allocations: 60.02 kB / 410.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.3517, allocations: 52 kB / 410.8 MB, free: 2.371 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007447/0.3525, allocations: 369.4 kB / 411.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.3527, allocations: 134.3 kB / 411.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.3547, allocations: 0.8334 MB / 412.2 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3547, allocations: 4 kB / 412.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.3547, allocations: 4 kB / 412.2 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.3548, allocations: 3.984 kB / 412.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/0.3591, allocations: 2.334 MB / 414.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/0.3591, allocations: 4 kB / 414.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006126/0.3597, allocations: 128.3 kB / 414.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004955/0.3602, allocations: 134.5 kB / 414.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.793e-05/0.3603, allocations: 19.94 kB / 414.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004759/0.3651, allocations: 4.392 MB / 419.2 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/0.3651, allocations: 7.938 kB / 419.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002726/0.3678, allocations: 1.3 MB / 420.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005831/0.3684, allocations: 283.4 kB / 420.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001843/0.3686, allocations: 19.94 kB / 420.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006648/0.3693, allocations: 39.97 kB / 420.8 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.3694, allocations: 64.5 kB / 420.9 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.791e-05/0.3695, allocations: 27.98 kB / 420.9 MB, free: 7.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001501/0.371, allocations: 0.8781 MB / 421.8 MB, free: 6.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.371, allocations: 0 / 421.8 MB, free: 6.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0014/0.3724, allocations: 332 kB / 422.1 MB, free: 6.453 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000284/0.3727, allocations: 129.3 kB / 422.2 MB, free: 6.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0021/0.3748, allocations: 1.117 MB / 423.4 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.3748, allocations: 4 kB / 423.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.376, allocations: 0.6993 MB / 424.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/0.3777, allocations: 356 kB / 424.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006608/0.3843, allocations: 3.581 MB / 428 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009939/0.3853, allocations: 1.217 MB / 429.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008432/0.3862, allocations: 179.6 kB / 429.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.3864, allocations: 91.36 kB / 429.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3864, allocations: 0 / 429.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of Templates: time 0.03626/0.4227, allocations: 16.79 MB / 446.3 MB, free: 14.32 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches