Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006915/0.0006915, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.000738/0.0007382, allocations: 180 kB / 17.21 MB, free: 6.32 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.256/1.256, allocations: 223.3 MB / 241.2 MB, free: 272 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1631/0.1631, allocations: 38.1 MB / 330.4 MB, free: 8.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003137, allocations: 11.98 kB / 400.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08697/0.0873, allocations: 59.17 MB / 459.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005202/0.09254, allocations: 4.805 MB / 464.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.09482, allocations: 1.578 MB / 465.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.0951, allocations: 27.81 kB / 465.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002887/0.09541, allocations: 115.3 kB / 465.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005602/0.09598, allocations: 274.3 kB / 466 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003187/0.09631, allocations: 135.8 kB / 466.2 MB, free: 460 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006564/0.09697, allocations: 0.611 MB / 466.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.09732, allocations: 272.7 kB / 467 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.09756, allocations: 191.2 kB / 467.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.09785, allocations: 219.1 kB / 467.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.0979, allocations: 16 kB / 467.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.08e-05/0.09796, allocations: 28 kB / 467.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.09807, allocations: 99.62 kB / 467.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.122e-05/0.09815, allocations: 105.5 kB / 467.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.09848, allocations: 391 kB / 468.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.09849, allocations: 0 / 468.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.0985, allocations: 0 / 468.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.597e-06/0.09852, allocations: 3.938 kB / 468.1 MB, free: 14.53 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009325/0.09945, allocations: 0.6445 MB / 468.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.09949, allocations: 8.031 kB / 468.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.636e-05/0.09957, allocations: 51.38 kB / 468.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.1001, allocations: 383.1 kB / 469.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.688e-05/0.1002, allocations: 58.7 kB / 469.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.874e-05/0.1002, allocations: 47.8 kB / 469.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000628/0.1009, allocations: 432.1 kB / 469.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.1009, allocations: 3.938 kB / 469.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.1009, allocations: 16 kB / 469.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.1009, allocations: 12 kB / 469.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.1014, allocations: 270 kB / 470 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.1033, allocations: 1.845 MB / 471.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003/0.1036, allocations: 179.6 kB / 472 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.1037, allocations: 78.61 kB / 472.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.1038, allocations: 4.281 kB / 472.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.1038, allocations: 38.56 kB / 472.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.413e-06/0.1038, allocations: 0 / 472.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001152/0.105, allocations: 0.7083 MB / 472.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.105, allocations: 110.8 kB / 472.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.1053, allocations: 308.5 kB / 473.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.1053, allocations: 29.7 kB / 473.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.1055, allocations: 243.5 kB / 473.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.1055, allocations: 67.02 kB / 473.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/0.1055, allocations: 8 kB / 473.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1057, allocations: 346.8 kB / 473.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.1058, allocations: 76.56 kB / 474 MB, free: 8.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.1061, allocations: 201.7 kB / 474.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.1063, allocations: 103.1 kB / 474.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.1063, allocations: 4 kB / 474.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004948/0.1068, allocations: 325.7 kB / 474.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.1068, allocations: 4 kB / 474.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1068, allocations: 8.562 kB / 474.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.1068, allocations: 8 kB / 474.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.1071, allocations: 83.83 kB / 474.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.1071, allocations: 11.94 kB / 474.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1073, allocations: 12 kB / 474.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.1073, allocations: 19.98 kB / 474.8 MB, free: 7.379 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.1075, allocations: 185.6 kB / 474.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-05/0.1076, allocations: 31.62 kB / 475 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003524/0.1079, allocations: 196.7 kB / 475.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1079, allocations: 7.938 kB / 475.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1079, allocations: 0 / 475.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.108, allocations: 3.984 kB / 475.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008142/0.1088, allocations: 0.624 MB / 475.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.1088, allocations: 0 / 475.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.109, allocations: 43.92 kB / 475.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.109, allocations: 4 kB / 475.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.109, allocations: 8 kB / 475.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1091, allocations: 0 / 475.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1091, allocations: 7.938 kB / 475.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.1096, allocations: 454.2 kB / 476.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.1097, allocations: 108.7 kB / 476.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.734e-05/0.1097, allocations: 0 / 476.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.1099, allocations: 12 kB / 476.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.1099, allocations: 20.02 kB / 476.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.11, allocations: 11.98 kB / 476.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.1102, allocations: 215.1 kB / 476.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1102, allocations: 0 / 476.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003846/0.1106, allocations: 68 kB / 476.7 MB, free: 5.293 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.975e-05/0.1106, allocations: 99.19 kB / 476.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003813/0.111, allocations: 206.7 kB / 477 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.111, allocations: 0 / 477 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.1112, allocations: 77.03 kB / 477.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006068/0.1118, allocations: 92.59 kB / 477.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.1133, allocations: 1.124 MB / 478.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.1136, allocations: 0.8149 MB / 479.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001857/0.1138, allocations: 47.25 kB / 479.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.723e-05/0.1139, allocations: 27.44 kB / 479.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1139, allocations: 0 / 479.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of Templates: time 0.006127/0.12, allocations: 3.107 MB / 482.3 MB, free: 15.68 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches