Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009364/0.0009364, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009197/0.0009197, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9477/0.9477, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2316/0.2316, allocations: 29.4 MB / 290.1 MB, free: 2.453 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.003e-05/2.156e-05, allocations: 2.281 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004339/0.004361, allocations: 4 MB / 434.2 MB, free: 9.574 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.005454, allocations: 0.8803 MB / 435.1 MB, free: 8.691 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.005624, allocations: 19.81 kB / 435.1 MB, free: 8.672 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.005819, allocations: 55.5 kB / 435.2 MB, free: 8.617 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000486/0.006305, allocations: 178.9 kB / 435.3 MB, free: 8.441 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.006504, allocations: 95.73 kB / 435.4 MB, free: 8.348 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003801/0.006884, allocations: 410.3 kB / 435.8 MB, free: 7.945 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.007072, allocations: 78.61 kB / 435.9 MB, free: 7.863 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003294/0.007401, allocations: 251.2 kB / 436.2 MB, free: 7.617 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.007629, allocations: 171.5 kB / 436.3 MB, free: 7.449 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.007658, allocations: 16 kB / 436.3 MB, free: 7.434 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.429e-05/0.007692, allocations: 20 kB / 436.4 MB, free: 7.414 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.893e-05/0.007771, allocations: 91.72 kB / 436.4 MB, free: 7.324 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.74e-05/0.007858, allocations: 99.69 kB / 436.5 MB, free: 7.227 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.008128, allocations: 283 kB / 436.8 MB, free: 6.949 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.008131, allocations: 8 kB / 436.8 MB, free: 6.941 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.008132, allocations: 0 / 436.8 MB, free: 6.941 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.008138, allocations: 0 / 436.8 MB, free: 6.941 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006552/0.008793, allocations: 0.5294 MB / 437.4 MB, free: 6.383 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.00883, allocations: 11.98 kB / 437.4 MB, free: 6.371 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.008874, allocations: 58.73 kB / 437.4 MB, free: 6.305 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.331e-05/0.008917, allocations: 36.7 kB / 437.5 MB, free: 6.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.009254, allocations: 275.7 kB / 437.7 MB, free: 5.977 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.009268, allocations: 16.88 kB / 437.7 MB, free: 5.961 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.009297, allocations: 24.38 kB / 437.8 MB, free: 5.938 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.009583, allocations: 295.5 kB / 438.1 MB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.009592, allocations: 0 / 438.1 MB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.009609, allocations: 11.98 kB / 438.1 MB, free: 5.602 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.009617, allocations: 8 kB / 438.1 MB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.009821, allocations: 176.9 kB / 438.3 MB, free: 5.422 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.01106, allocations: 1.151 MB / 439.4 MB, free: 4.188 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.01137, allocations: 109.2 kB / 439.5 MB, free: 4.062 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.451e-05/0.01143, allocations: 37.77 kB / 439.5 MB, free: 4.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.01145, allocations: 4 kB / 439.6 MB, free: 4.016 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.01147, allocations: 34.56 kB / 439.6 MB, free: 3.973 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.834e-06/0.01147, allocations: 0 / 439.6 MB, free: 3.973 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007274/0.0122, allocations: 416.7 kB / 440 MB, free: 3.531 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.01225, allocations: 89.22 kB / 440.1 MB, free: 3.426 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.01243, allocations: 249.8 kB / 440.3 MB, free: 3.176 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.01245, allocations: 25.7 kB / 440.3 MB, free: 3.145 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.01259, allocations: 204.1 kB / 440.5 MB, free: 2.941 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.01262, allocations: 43.62 kB / 440.6 MB, free: 2.898 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.06e-05/0.01268, allocations: 45.66 kB / 440.6 MB, free: 2.848 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.01278, allocations: 338.8 kB / 441 MB, free: 2.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.721e-05/0.01283, allocations: 35.84 kB / 441 MB, free: 2.473 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.417e-05/0.01293, allocations: 131.9 kB / 441.1 MB, free: 2.301 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.01309, allocations: 188.6 kB / 441.3 MB, free: 2.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.01309, allocations: 8 kB / 441.3 MB, free: 2.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002139/0.0133, allocations: 205.2 kB / 441.5 MB, free: 1.855 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.01332, allocations: 6.969 kB / 441.5 MB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.01333, allocations: 8.438 kB / 441.5 MB, free: 1.844 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.01335, allocations: 15.92 kB / 441.6 MB, free: 1.828 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.01346, allocations: 39.98 kB / 441.6 MB, free: 1.789 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.01347, allocations: 7.938 kB / 441.6 MB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.25e-05/0.01355, allocations: 8 kB / 441.6 MB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.01357, allocations: 8 kB / 441.6 MB, free: 1.766 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.0137, allocations: 161.6 kB / 441.8 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.093e-05/0.01373, allocations: 23.86 kB / 441.8 MB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.01393, allocations: 127.4 kB / 441.9 MB, free: 1.441 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.01393, allocations: 4 kB / 441.9 MB, free: 1.438 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.01393, allocations: 0 / 441.9 MB, free: 1.438 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.01394, allocations: 4 kB / 441.9 MB, free: 1.434 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.01438, allocations: 450.2 kB / 442.4 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.01438, allocations: 0 / 442.4 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.711e-05/0.01448, allocations: 27.92 kB / 442.4 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.01448, allocations: 3.984 kB / 442.4 MB, free: 0.9102 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.01449, allocations: 8 kB / 442.4 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.0145, allocations: 96 / 442.4 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.0145, allocations: 7.875 kB / 442.4 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.01476, allocations: 271.5 kB / 442.7 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.785e-05/0.01479, allocations: 19.89 kB / 442.7 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.01481, allocations: 4.094 kB / 442.7 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.817e-05/0.01486, allocations: 7.984 kB / 442.7 MB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.316e-05/0.01489, allocations: 15.86 kB / 442.7 MB, free: 0.5625 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/0.0149, allocations: 4 kB / 442.7 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.015, allocations: 173.2 kB / 442.9 MB, free: 396 kB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.015, allocations: 4 kB / 442.9 MB, free: 392 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002211/0.01522, allocations: 44 kB / 442.9 MB, free: 348 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.194/0.2093, allocations: 0.8027 MB / 443.7 MB, free: 53.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002592/0.2095, allocations: 105.5 kB / 443.9 MB, free: 53.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.2095, allocations: 0 / 443.9 MB, free: 53.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.678e-05/0.2096, allocations: 45.39 kB / 443.9 MB, free: 53.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.2101, allocations: 63.03 kB / 444 MB, free: 53.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.2117, allocations: 2.394 MB / 446.4 MB, free: 52.44 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.748e-05/0.2118, allocations: 164.2 kB / 446.5 MB, free: 52.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.145e-05/0.2119, allocations: 31.38 kB / 446.5 MB, free: 52.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.075e-05/0.212, allocations: 87.56 kB / 446.6 MB, free: 52.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/0.212, allocations: 0 / 446.6 MB, free: 52.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.2345, allocations: 5.443 MB / 452.1 MB, free: 51.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.529/6.763, allocations: 3.984 kB / 452.1 MB, free: 51.17 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.744473551400006]