Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009533/0.0009536, allocations: 88.66 kB / 16.31 MB, free: 6.461 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.0009722/0.0009721, allocations: 181.5 kB / 17.21 MB, free: 6.328 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.244/1.244, allocations: 223.3 MB / 241.2 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2611/0.2611, allocations: 38.07 MB / 330.4 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002974/0.0002975, allocations: 11.98 kB / 400.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2473, allocations: 59.16 MB / 459.2 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005231/0.2526, allocations: 5.397 MB / 464.6 MB, free: 26.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.2551, allocations: 1.728 MB / 466.4 MB, free: 25.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004175/0.2555, allocations: 39.75 kB / 466.4 MB, free: 25.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003725/0.2559, allocations: 126.3 kB / 466.5 MB, free: 25.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008603/0.2568, allocations: 337.4 kB / 466.9 MB, free: 24.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004971/0.2573, allocations: 163.7 kB / 467 MB, free: 24.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009014/0.2582, allocations: 0.7454 MB / 467.8 MB, free: 24.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004412/0.2586, allocations: 319.3 kB / 468.1 MB, free: 24.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003442/0.259, allocations: 238.6 kB / 468.3 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000367/0.2594, allocations: 266.8 kB / 468.6 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.843e-05/0.2594, allocations: 23.16 kB / 468.6 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.267e-05/0.2595, allocations: 24.81 kB / 468.6 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.2596, allocations: 127.7 kB / 468.7 MB, free: 24.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.2597, allocations: 122.3 kB / 468.9 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004794/0.2602, allocations: 455.4 kB / 469.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2602, allocations: 0 / 469.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2603, allocations: 0 / 469.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2603, allocations: 3.938 kB / 469.3 MB, free: 24.02 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00107/0.2613, allocations: 0.7069 MB / 470 MB, free: 23.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2614, allocations: 9.75 kB / 470 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.278e-05/0.2615, allocations: 54.06 kB / 470.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.2621, allocations: 417.3 kB / 470.5 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.693e-05/0.2622, allocations: 64.39 kB / 470.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.125e-05/0.2622, allocations: 49.14 kB / 470.6 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008267/0.2631, allocations: 0.498 MB / 471.1 MB, free: 22.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.2631, allocations: 5.719 kB / 471.1 MB, free: 22.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.791e-05/0.2631, allocations: 20.34 kB / 471.1 MB, free: 22.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.2632, allocations: 10.31 kB / 471.1 MB, free: 22.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006366/0.2638, allocations: 349.1 kB / 471.5 MB, free: 22.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.2661, allocations: 1.984 MB / 473.4 MB, free: 21.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004706/0.2666, allocations: 223.6 kB / 473.7 MB, free: 21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.2668, allocations: 108.9 kB / 473.8 MB, free: 20.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.2668, allocations: 9.891 kB / 473.8 MB, free: 20.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.2668, allocations: 37.77 kB / 473.8 MB, free: 20.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.294e-06/0.2668, allocations: 0 / 473.8 MB, free: 20.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001622/0.2685, allocations: 0.8537 MB / 474.7 MB, free: 20.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.2685, allocations: 111.8 kB / 474.8 MB, free: 20.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.2689, allocations: 331.9 kB / 475.1 MB, free: 20.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.2689, allocations: 35.02 kB / 475.1 MB, free: 19.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.269, allocations: 273.9 kB / 475.4 MB, free: 19.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.983e-05/0.2691, allocations: 76.66 kB / 475.5 MB, free: 19.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.2691, allocations: 9.375 kB / 475.5 MB, free: 19.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.864e-05/0.2692, allocations: 341.3 kB / 475.8 MB, free: 19.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.2693, allocations: 95.38 kB / 475.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.2696, allocations: 213.8 kB / 476.1 MB, free: 19.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007254/0.2703, allocations: 308.9 kB / 476.4 MB, free: 18.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.2703, allocations: 6.094 kB / 476.4 MB, free: 18.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008149/0.2712, allocations: 414.4 kB / 476.8 MB, free: 18.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2712, allocations: 7.75 kB / 476.8 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.2712, allocations: 8.172 kB / 476.9 MB, free: 18.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002901/0.2715, allocations: 80.02 kB / 476.9 MB, free: 18.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.2717, allocations: 81.08 kB / 477 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.2733, allocations: 1.735 MB / 478.7 MB, free: 17.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.2735, allocations: 21.25 kB / 478.8 MB, free: 17.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.2736, allocations: 13 kB / 478.8 MB, free: 17.17 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002517/0.2738, allocations: 205.7 kB / 479 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.2739, allocations: 31.56 kB / 479 MB, free: 16.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.645e-05/0.274, allocations: 38.2 kB / 479 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.274, allocations: 3.469 kB / 479.1 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.274, allocations: 1.875 kB / 479.1 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.274, allocations: 1.859 kB / 479.1 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.2751, allocations: 0.7851 MB / 479.8 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.2751, allocations: 1.344 kB / 479.8 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002344/0.2754, allocations: 55.14 kB / 479.9 MB, free: 16.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.038e-05/0.2755, allocations: 23.2 kB / 479.9 MB, free: 16.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2755, allocations: 6.125 kB / 479.9 MB, free: 16.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005663/0.2761, allocations: 1.298 MB / 481.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2761, allocations: 5.141 kB / 481.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006136/0.2767, allocations: 0.5044 MB / 481.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.064e-05/0.2768, allocations: 122 kB / 481.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.2769, allocations: 10.61 kB / 481.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.2771, allocations: 17.77 kB / 481.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.966e-05/0.2771, allocations: 17.31 kB / 481.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.2771, allocations: 7.312 kB / 481.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002079/0.2773, allocations: 226.1 kB / 482.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2773, allocations: 1.094 kB / 482.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005452/0.2779, allocations: 85.66 kB / 482.2 MB, free: 14.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.475e-05/0.278, allocations: 106.2 kB / 482.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006699/0.2787, allocations: 381.7 kB / 482.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.2787, allocations: 1.062 kB / 482.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.279, allocations: 216.8 kB / 482.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.2796, allocations: 93.16 kB / 483 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.281, allocations: 1.18 MB / 484.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.2813, allocations: 0.848 MB / 485 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001912/0.2815, allocations: 56.33 kB / 485.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.7e-05/0.2816, allocations: 26.94 kB / 485.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2816, allocations: 0 / 485.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Templates: time 0.006943/0.2885, allocations: 4.09 MB / 489.2 MB, free: 9.141 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches