Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 108.4 kB / 18.4 MB, free: 4.68 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.001022/0.001022, allocations: 190.1 kB / 19.34 MB, free: 3.754 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.26/1.26, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001316/0.001316, allocations: 47.92 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07276/0.07408, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.1539/0.228, allocations: 8.138 MB / 384 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003383/0.2314, allocations: 2.742 MB / 386.7 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004398/0.2319, allocations: 26.53 kB / 386.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.233, allocations: 0.5316 MB / 387.3 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006919/0.2337, allocations: 438 kB / 387.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005818/0.2343, allocations: 361.3 kB / 388.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.2355, allocations: 1.505 MB / 389.6 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000711/0.2363, allocations: 0.6135 MB / 390.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000523/0.2368, allocations: 0.5569 MB / 390.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005806/0.2374, allocations: 0.6005 MB / 391.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001697/0.2376, allocations: 138.2 kB / 391.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003141/0.2379, allocations: 176.4 kB / 391.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.2381, allocations: 298.2 kB / 391.9 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004774/0.2386, allocations: 0.663 MB / 392.6 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.24, allocations: 1.725 MB / 394.3 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.24, allocations: 0 / 394.3 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.24, allocations: 0 / 394.3 MB, free: 3.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.24, allocations: 0 / 394.3 MB, free: 3.895 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002081/0.2421, allocations: 1.509 MB / 395.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.2422, allocations: 10.53 kB / 395.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005782/0.2428, allocations: 190.3 kB / 396 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.2439, allocations: 0.8004 MB / 396.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.678e-05/0.2439, allocations: 76.91 kB / 396.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.2441, allocations: 101.4 kB / 397 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.2455, allocations: 0.9565 MB / 397.9 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/0.2455, allocations: 2.906 kB / 398 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-05/0.2456, allocations: 41.62 kB / 398 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.2456, allocations: 23.59 kB / 398 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.2468, allocations: 0.6363 MB / 398.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004547/0.2514, allocations: 4.084 MB / 402.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009681/0.2523, allocations: 434.6 kB / 403.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.2526, allocations: 160.8 kB / 403.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.2527, allocations: 4.125 kB / 403.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.2527, allocations: 37.31 kB / 403.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.713e-06/0.2527, allocations: 0 / 403.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002251/0.255, allocations: 1.322 MB / 404.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.2551, allocations: 112 kB / 404.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.2562, allocations: 0.9018 MB / 405.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.2562, allocations: 31.77 kB / 405.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/0.2566, allocations: 0.5874 MB / 406.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.2567, allocations: 149.4 kB / 406.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.2569, allocations: 139.8 kB / 406.6 MB, free: 12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.257, allocations: 336.7 kB / 406.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.2574, allocations: 175.1 kB / 407.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005279/0.2579, allocations: 496.8 kB / 407.6 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008653/0.2588, allocations: 0.677 MB / 408.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.2588, allocations: 3.156 kB / 408.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001207/0.26, allocations: 0.7492 MB / 409 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.2601, allocations: 14.81 kB / 409 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.2601, allocations: 10.12 kB / 409 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000139/0.2602, allocations: 40 kB / 409.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.2608, allocations: 170.5 kB / 409.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009392/0.2618, allocations: 1.388 MB / 410.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/0.2623, allocations: 39.08 kB / 410.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.875e-05/0.2623, allocations: 41.06 kB / 410.7 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005249/0.2629, allocations: 357.1 kB / 411.1 MB, free: 8.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004698/0.2634, allocations: 481.3 kB / 411.5 MB, free: 7.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007815/0.2642, allocations: 0.6724 MB / 412.2 MB, free: 7.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.28e-06/0.2642, allocations: 2.562 kB / 412.2 MB, free: 7.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00114/0.2653, allocations: 0.7134 MB / 412.9 MB, free: 6.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.2653, allocations: 13.03 kB / 412.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2654, allocations: 11.06 kB / 412.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.201e-05/0.2655, allocations: 36.25 kB / 413 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.266, allocations: 162.9 kB / 413.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009167/0.2669, allocations: 1.392 MB / 414.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005048/0.2675, allocations: 33.64 kB / 414.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.311e-05/0.2675, allocations: 33.69 kB / 414.6 MB, free: 5.266 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0001793/0.2677, allocations: 238.1 kB / 414.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.2678, allocations: 95.25 kB / 414.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008152/0.2687, allocations: 432.7 kB / 415.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.2687, allocations: 3.984 kB / 415.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2687, allocations: 0 / 415.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000246/0.2689, allocations: 201.7 kB / 415.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.2691, allocations: 14.28 kB / 415.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003794/0.2694, allocations: 17.86 kB / 415.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.2695, allocations: 28.33 kB / 415.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009814/0.2705, allocations: 480.5 kB / 416.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009502/0.2715, allocations: 0.7246 MB / 416.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002405/0.2717, allocations: 143.9 kB / 416.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007969/0.2725, allocations: 0.6062 MB / 417.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of Backend: time 7.71e-07/0.2725, allocations: 0 / 417.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.2744, allocations: 0.9697 MB / 418.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of SimCode: time 0.003238/0.2776, allocations: 2.342 MB / 420.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of Templates: time 0.02076/0.2984, allocations: 12.78 MB / 433.6 MB, free: 4.328 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_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_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches