Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 109.7 kB / 18.4 MB, free: 4.656 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.001467/0.001467, allocations: 187 kB / 19.34 MB, free: 3.734 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.259/1.259, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.00112/0.00112, allocations: 47.94 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07285/0.07398, allocations: 46.62 MB / 375.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.1648/0.2388, allocations: 15.18 MB / 391 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009363/0.2482, allocations: 5.674 MB / 396.7 MB, free: 284 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002663/0.2509, allocations: 74.97 kB / 396.8 MB, free: 260 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002685/0.2536, allocations: 1.006 MB / 397.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001867/0.2555, allocations: 0.6655 MB / 398.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.2572, allocations: 0.75 MB / 399.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003486/0.2607, allocations: 2.74 MB / 401.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002033/0.2627, allocations: 1.287 MB / 403.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.2645, allocations: 1.074 MB / 404.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001872/0.2664, allocations: 1.069 MB / 405.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006404/0.267, allocations: 265.2 kB / 405.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008104/0.2678, allocations: 262.9 kB / 405.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006561/0.2685, allocations: 0.5225 MB / 406.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001855/0.2704, allocations: 1.165 MB / 407.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003316/0.2737, allocations: 3.163 MB / 410.7 MB, free: 8.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2737, allocations: 0 / 410.7 MB, free: 8.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2737, allocations: 0 / 410.7 MB, free: 8.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.907e-05/0.2738, allocations: 0 / 410.7 MB, free: 8.27 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004294/0.2781, allocations: 2.468 MB / 413.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.2781, allocations: 13.09 kB / 413.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003631/0.2785, allocations: 253.4 kB / 413.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/0.2804, allocations: 1.251 MB / 414.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002677/0.2807, allocations: 260.5 kB / 415 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.281, allocations: 199 kB / 415.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003481/0.2845, allocations: 1.917 MB / 417.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.511e-05/0.2845, allocations: 7.281 kB / 417.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/0.2847, allocations: 76.28 kB / 417.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/0.2847, allocations: 49.94 kB / 417.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003416/0.2882, allocations: 1.577 MB / 418.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009001/0.2972, allocations: 7.153 MB / 425.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.2999, allocations: 1.221 MB / 427.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.3009, allocations: 460.2 kB / 427.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.894e-05/0.301, allocations: 9 kB / 427.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.3011, allocations: 47.56 kB / 427.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=83): time 2.214e-06/0.3011, allocations: 0 / 427.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.03209/0.3332, allocations: 7.865 MB / 435.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.3332, allocations: 64.41 kB / 435.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/0.3348, allocations: 1.244 MB / 436.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.958e-05/0.3349, allocations: 49.7 kB / 436.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006409/0.3356, allocations: 0.991 MB / 437.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002983/0.3359, allocations: 394.4 kB / 438.3 MB, free: 412 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000431/0.3363, allocations: 267.3 kB / 438.5 MB, free: 140 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3365, allocations: 305.1 kB / 438.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/0.3384, allocations: 0.7387 MB / 439.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002242/0.3407, allocations: 1.187 MB / 440.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003871/0.3446, allocations: 1.801 MB / 442.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.3446, allocations: 4 kB / 442.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004761/0.3494, allocations: 2.145 MB / 444.7 MB, free: 9.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.3494, allocations: 12 kB / 444.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.3494, allocations: 16 kB / 444.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000149/0.3496, allocations: 44.84 kB / 444.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/0.3514, allocations: 419.6 kB / 445.2 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009813/0.3524, allocations: 1.374 MB / 446.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/0.3539, allocations: 143.9 kB / 446.7 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.354, allocations: 67.98 kB / 446.8 MB, free: 7.312 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002319/0.3564, allocations: 0.9763 MB / 447.7 MB, free: 6.332 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002026/0.3584, allocations: 1.158 MB / 448.9 MB, free: 4.969 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003503/0.3619, allocations: 1.736 MB / 450.6 MB, free: 3.023 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.835e-06/0.3619, allocations: 4 kB / 450.6 MB, free: 3.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004391/0.3663, allocations: 2.063 MB / 452.7 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3664, allocations: 8 kB / 452.7 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.3664, allocations: 16 kB / 452.7 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.359e-05/0.3665, allocations: 45.34 kB / 452.8 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.3682, allocations: 399.4 kB / 453.2 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009153/0.3691, allocations: 1.382 MB / 454.5 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/0.3705, allocations: 127.9 kB / 454.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.3706, allocations: 64 kB / 454.7 MB, free: 14.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.noWphase,kinematicPTP.moving[1],speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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.0003416/0.371, allocations: 279.7 kB / 455 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.3712, allocations: 158 kB / 455.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004172/0.3754, allocations: 1.581 MB / 456.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.3754, allocations: 7.969 kB / 456.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3755, allocations: 0 / 456.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005874/0.376, allocations: 319 kB / 457.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/0.3763, allocations: 20 kB / 457.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.3775, allocations: 115.8 kB / 457.2 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000279/0.3778, allocations: 108.8 kB / 457.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00492/0.3827, allocations: 1.564 MB / 458.9 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005788/0.3885, allocations: 2.4 MB / 461.3 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001785/0.3903, allocations: 0.687 MB / 461.9 MB, free: 7.434 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001241/0.3915, allocations: 0.8142 MB / 462.8 MB, free: 6.621 MB / 382.1 MB Notification: Performance of Backend: time 4.91e-07/0.3916, allocations: 4 kB / 462.8 MB, free: 6.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005702/0.3973, allocations: 2.473 MB / 465.2 MB, free: 4.121 MB / 382.1 MB Notification: Performance of SimCode: time 0.005886/0.4032, allocations: 3.656 MB / 468.9 MB, free: 420 kB / 382.1 MB Notification: Performance of Templates: time 0.04516/0.4483, allocations: 28.01 MB / 496.9 MB, free: 4.348 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches