Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-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: "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 100.9 kB / 16.45 MB, free: 6.441 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.00124/0.001239, allocations: 189.4 kB / 17.39 MB, free: 5.688 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.443/1.443, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05344/0.05344, allocations: 8.102 MB / 299.3 MB, free: 6.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 63.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.08741, allocations: 51.51 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002694/0.09014, allocations: 1.578 MB / 467.1 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.09229, allocations: 1.559 MB / 468.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.713e-05/0.09241, allocations: 4 kB / 468.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.09275, allocations: 119.4 kB / 468.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.09305, allocations: 119.2 kB / 468.9 MB, free: 15.27 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.09486, allocations: 0.914 MB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003911/0.09526, allocations: 246.8 kB / 470 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.09544, allocations: 76.34 kB / 470.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.09558, allocations: 103.6 kB / 470.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.09581, allocations: 135.4 kB / 470.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.09585, allocations: 20 kB / 470.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004171/0.09628, allocations: 207.7 kB / 470.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-05/0.09636, allocations: 47.83 kB / 470.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.09655, allocations: 123.3 kB / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005972/0.09715, allocations: 391 kB / 471.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.09717, allocations: 4 kB / 471.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09718, allocations: 0 / 471.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.0972, allocations: 0 / 471.1 MB, free: 13.03 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002647/0.09985, allocations: 0.8296 MB / 471.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.0999, allocations: 11.89 kB / 472 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.54e-05/0.09998, allocations: 54.73 kB / 472 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.944e-05/0.1001, allocations: 24.8 kB / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.1004, allocations: 272.6 kB / 472.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.1004, allocations: 12.38 kB / 472.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.1005, allocations: 20.38 kB / 472.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.1009, allocations: 261.9 kB / 472.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.1009, allocations: 3.938 kB / 472.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.101, allocations: 8 kB / 472.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.101, allocations: 4 kB / 472.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004058/0.1014, allocations: 251.7 kB / 472.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.103, allocations: 1.145 MB / 474 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.1035, allocations: 304.1 kB / 474.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.1037, allocations: 161.2 kB / 474.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.782e-05/0.1038, allocations: 12.22 kB / 474.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004232/0.1042, allocations: 215.5 kB / 474.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.1042, allocations: 3.938 kB / 474.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002997/0.1072, allocations: 0.9296 MB / 475.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.1073, allocations: 59.41 kB / 475.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.1075, allocations: 183.1 kB / 475.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.1075, allocations: 29.7 kB / 475.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.136e-05/0.1076, allocations: 128.9 kB / 476 MB, free: 7.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.591e-05/0.1077, allocations: 103.1 kB / 476.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.1079, allocations: 65.44 kB / 476.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.1081, allocations: 330.8 kB / 476.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002934/0.1084, allocations: 151.9 kB / 476.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002928/0.1087, allocations: 198.9 kB / 476.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005435/0.1092, allocations: 354.4 kB / 477.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.1092, allocations: 4 kB / 477.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.002311/0.1116, allocations: 0.646 MB / 477.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1116, allocations: 4 kB / 477.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1116, allocations: 0 / 477.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002509/0.1141, allocations: 344.5 kB / 478.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.1144, allocations: 47.92 kB / 478.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004423/0.1188, allocations: 2.644 MB / 480.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.1191, allocations: 19.91 kB / 480.9 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.1191, allocations: 12 kB / 480.9 MB, free: 2.734 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001672/0.1193, allocations: 137.8 kB / 481 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.524e-05/0.1193, allocations: 27.8 kB / 481 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.1213, allocations: 0.672 MB / 481.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.1213, allocations: 7.938 kB / 481.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1213, allocations: 0 / 481.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1213, allocations: 0 / 481.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004521/0.1218, allocations: 397.3 kB / 482.1 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.1218, allocations: 3.984 kB / 482.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.122, allocations: 35.98 kB / 482.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00156/0.1235, allocations: 332.5 kB / 482.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.1236, allocations: 4 kB / 482.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/0.1278, allocations: 2.61 MB / 485.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.1278, allocations: 7.984 kB / 485.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.1296, allocations: 0.6384 MB / 485.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.1297, allocations: 100.9 kB / 485.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.1298, allocations: 11.94 kB / 485.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.13, allocations: 12.12 kB / 485.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.67e-05/0.1301, allocations: 27.95 kB / 485.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.1301, allocations: 16 kB / 485.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001457/0.1303, allocations: 135.7 kB / 486 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1303, allocations: 4 kB / 486 MB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004239/0.1307, allocations: 91.94 kB / 486.1 MB, free: 13.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00221/0.1329, allocations: 1.194 MB / 487.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.1346, allocations: 0.6116 MB / 487.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.1346, allocations: 4 kB / 487.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.1357, allocations: 455.4 kB / 488.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.136, allocations: 27.38 kB / 488.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006047/0.142, allocations: 3.207 MB / 491.6 MB, free: 7.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.1426, allocations: 0.7454 MB / 492.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.1427, allocations: 37.91 kB / 492.4 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.1429, allocations: 71.42 kB / 492.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1429, allocations: 0 / 492.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04349/0.1864, allocations: 8.391 MB / 0.4891 GB, free: 14.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/11.88, allocations: 9.172 kB / 0.4891 GB, free: 14.44 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)