Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000848/0.0008481, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.0009478/0.0009478, allocations: 181.3 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2739/0.2739, allocations: 38.08 MB / 330.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002725/0.0002725, allocations: 8 kB / 400 MB, free: 9.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2362, allocations: 59.16 MB / 459.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.004936/0.2412, allocations: 5.393 MB / 464.5 MB, free: 26.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002671/0.2439, allocations: 2.139 MB / 466.7 MB, free: 25.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002821/0.2442, allocations: 29.31 kB / 466.7 MB, free: 25.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004015/0.2446, allocations: 152 kB / 466.8 MB, free: 24.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007558/0.2453, allocations: 375.7 kB / 467.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005093/0.2459, allocations: 213.5 kB / 467.4 MB, free: 24.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006373/0.2465, allocations: 489 kB / 467.9 MB, free: 24.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000429/0.2469, allocations: 368.8 kB / 468.2 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003149/0.2473, allocations: 264.4 kB / 468.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002935/0.2476, allocations: 232.4 kB / 468.7 MB, free: 24.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.2476, allocations: 30.12 kB / 468.8 MB, free: 24.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.2478, allocations: 62.56 kB / 468.8 MB, free: 24.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.2479, allocations: 135.5 kB / 469 MB, free: 23.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.2481, allocations: 134.2 kB / 469.1 MB, free: 23.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005492/0.2486, allocations: 0.5612 MB / 469.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.2486, allocations: 1.469 kB / 469.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2486, allocations: 0 / 469.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2486, allocations: 0 / 469.6 MB, free: 23.73 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001267/0.2499, allocations: 0.7971 MB / 470.4 MB, free: 23.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.25, allocations: 12.75 kB / 470.5 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.356e-05/0.2501, allocations: 66.42 kB / 470.5 MB, free: 23.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007288/0.2508, allocations: 491.8 kB / 471 MB, free: 22.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.2508, allocations: 30.56 kB / 471 MB, free: 22.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.2509, allocations: 46.27 kB / 471.1 MB, free: 22.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007574/0.2517, allocations: 0.507 MB / 471.6 MB, free: 22.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2517, allocations: 4.875 kB / 471.6 MB, free: 22.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/0.2518, allocations: 28.25 kB / 471.6 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.442e-05/0.2519, allocations: 20.81 kB / 471.6 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005137/0.2524, allocations: 330.2 kB / 472 MB, free: 22.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.2547, allocations: 2.072 MB / 474 MB, free: 20.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.2551, allocations: 232.4 kB / 474.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.2551, allocations: 4.281 kB / 474.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.2553, allocations: 171.4 kB / 474.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.342e-06/0.2553, allocations: 0 / 474.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001357/0.2567, allocations: 0.9258 MB / 475.4 MB, free: 19.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.2568, allocations: 140.8 kB / 475.5 MB, free: 19.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005153/0.2573, allocations: 427.1 kB / 475.9 MB, free: 19.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.2573, allocations: 31.08 kB / 475.9 MB, free: 19.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.2575, allocations: 287.5 kB / 476.2 MB, free: 19.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.224e-05/0.2576, allocations: 94.64 kB / 476.3 MB, free: 19.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.565e-05/0.2576, allocations: 6.375 kB / 476.3 MB, free: 19.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2578, allocations: 354.7 kB / 476.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.2579, allocations: 83.53 kB / 476.7 MB, free: 18.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.2582, allocations: 219.2 kB / 477 MB, free: 18.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.2584, allocations: 120.7 kB / 477.1 MB, free: 18.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2584, allocations: 1.375 kB / 477.1 MB, free: 18.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007883/0.2592, allocations: 446.6 kB / 477.5 MB, free: 18.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.2592, allocations: 7.953 kB / 477.5 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.2592, allocations: 4.125 kB / 477.5 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003939/0.2596, allocations: 93.92 kB / 477.6 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.2599, allocations: 77.17 kB / 477.7 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.2614, allocations: 1.722 MB / 479.4 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.2617, allocations: 24.48 kB / 479.4 MB, free: 16.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.2617, allocations: 25.73 kB / 479.5 MB, free: 16.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.2619, allocations: 206.8 kB / 479.7 MB, free: 16.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.262, allocations: 48.84 kB / 479.7 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004616/0.2624, allocations: 275.4 kB / 480 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.2624, allocations: 7.016 kB / 480 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2624, allocations: 2.062 kB / 480 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2625, allocations: 0.9062 kB / 480 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009215/0.2634, allocations: 0.7763 MB / 480.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2634, allocations: 4.844 kB / 480.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.2636, allocations: 47.27 kB / 480.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001715/0.2638, allocations: 50.98 kB / 480.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.2639, allocations: 10.94 kB / 480.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008665/0.2647, allocations: 1.436 MB / 482.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2647, allocations: 9.25 kB / 482.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.2653, allocations: 499.3 kB / 482.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.2654, allocations: 138.8 kB / 483 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.2655, allocations: 8.062 kB / 483 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.2657, allocations: 23.95 kB / 483 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.9e-05/0.2657, allocations: 18.62 kB / 483 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.2658, allocations: 5.469 kB / 483 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002719/0.266, allocations: 296.6 kB / 483.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.266, allocations: 0 / 483.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004791/0.2665, allocations: 114.4 kB / 483.4 MB, free: 13.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007677/0.2673, allocations: 399.4 kB / 483.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006108/0.2679, allocations: 392.4 kB / 484.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2679, allocations: 0 / 484.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.2682, allocations: 233.9 kB / 484.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.2688, allocations: 120.6 kB / 484.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.2703, allocations: 1.478 MB / 486 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.2706, allocations: 0.8919 MB / 486.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002136/0.2708, allocations: 68.38 kB / 487 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.903e-05/0.2709, allocations: 35.94 kB / 487 MB, free: 10.82 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2709, allocations: 0 / 487 MB, free: 10.82 MB / 350.1 MB Notification: Performance of Templates: time 0.008452/0.2794, allocations: 5.915 MB / 492.9 MB, free: 5.512 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches