Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.001934/0.001934, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002528/0.002528, allocations: 215.8 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] 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.1844/0.1844, allocations: 38.53 MB / 352.5 MB, free: 12.53 MB / 286.1 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.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 67.89 kB / 492.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2999, allocations: 62.47 MB / 0.542 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.006305/0.3062, allocations: 4.202 MB / 0.5461 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.308, allocations: 0.9341 MB / 0.547 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.3083, allocations: 15.12 kB / 0.547 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.3085, allocations: 60.3 kB / 0.5471 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005768/0.3091, allocations: 181.1 kB / 0.5473 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.3093, allocations: 91.28 kB / 0.5474 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005588/0.3099, allocations: 400.1 kB / 0.5477 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.3101, allocations: 79.02 kB / 0.5478 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004356/0.3105, allocations: 194.2 kB / 0.548 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004308/0.311, allocations: 220.2 kB / 0.5482 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.624e-05/0.311, allocations: 20.91 kB / 0.5482 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.3111, allocations: 20.69 kB / 0.5482 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.3112, allocations: 108 kB / 0.5484 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.3114, allocations: 150.1 kB / 0.5485 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004125/0.3118, allocations: 317.3 kB / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3118, allocations: 0 / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.3118, allocations: 0 / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.3118, allocations: 5.125 kB / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001091/0.3129, allocations: 0.5578 MB / 0.5493 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3129, allocations: 13.14 kB / 0.5494 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.495e-05/0.313, allocations: 55.8 kB / 0.5494 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.3131, allocations: 36.31 kB / 0.5494 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/0.3135, allocations: 283.3 kB / 0.5497 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.3136, allocations: 25.34 kB / 0.5497 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.3136, allocations: 22.62 kB / 0.5498 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.3141, allocations: 313.3 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3141, allocations: 1.406 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.3141, allocations: 10.69 kB / 0.5501 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3141, allocations: 9.156 kB / 0.5501 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000358/0.3145, allocations: 220.8 kB / 0.5503 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3161, allocations: 1.304 MB / 0.5516 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.3164, allocations: 135.8 kB / 0.5517 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3165, allocations: 62.19 kB / 0.5518 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.3165, allocations: 1.5 kB / 0.5518 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.3166, allocations: 36.16 kB / 0.5518 GB, free: 8.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.3166, allocations: 0 / 0.5518 GB, free: 8.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.000786/0.3174, allocations: 372 kB / 0.5521 GB, free: 8.473 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.3174, allocations: 83.38 kB / 0.5522 GB, free: 8.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.3177, allocations: 261.3 kB / 0.5525 GB, free: 8.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.3177, allocations: 33.64 kB / 0.5525 GB, free: 8.152 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.3179, allocations: 210 kB / 0.5527 GB, free: 7.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.435e-05/0.3179, allocations: 45.67 kB / 0.5527 GB, free: 7.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.917e-05/0.318, allocations: 45.55 kB / 0.5528 GB, free: 7.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3181, allocations: 340.3 kB / 0.5531 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.3182, allocations: 57.19 kB / 0.5532 GB, free: 7.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.3184, allocations: 145.1 kB / 0.5533 GB, free: 7.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/0.3187, allocations: 229.9 kB / 0.5535 GB, free: 7.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3187, allocations: 1.375 kB / 0.5535 GB, free: 7.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003666/0.319, allocations: 253.6 kB / 0.5538 GB, free: 7.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.319, allocations: 6.812 kB / 0.5538 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.319, allocations: 3.281 kB / 0.5538 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3191, allocations: 4.875 kB / 0.5538 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.3193, allocations: 52.31 kB / 0.5538 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.3193, allocations: 8.625 kB / 0.5538 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.3194, allocations: 13.17 kB / 0.5539 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.3194, allocations: 16.27 kB / 0.5539 GB, free: 6.992 MB / 398.1 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 (25): * Single equations (assignments): 25 * 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.0001521/0.3196, allocations: 155.6 kB / 0.554 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.3196, allocations: 22.05 kB / 0.554 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000333/0.32, allocations: 196 kB / 0.5542 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.32, allocations: 2.344 kB / 0.5542 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.32, allocations: 5.156 kB / 0.5542 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.32, allocations: 0 / 0.5542 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006945/0.3207, allocations: 0.5298 MB / 0.5548 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3207, allocations: 4 kB / 0.5548 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001478/0.3208, allocations: 35.42 kB / 0.5548 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3208, allocations: 4.812 kB / 0.5548 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.3208, allocations: 2.156 kB / 0.5548 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.3209, allocations: 5 kB / 0.5548 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3209, allocations: 1.031 kB / 0.5548 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003318/0.3212, allocations: 304.8 kB / 0.5551 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.3212, allocations: 27.48 kB / 0.5551 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.3213, allocations: 1.094 kB / 0.5551 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.3214, allocations: 10.09 kB / 0.5551 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.243e-05/0.3214, allocations: 16.19 kB / 0.5551 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.3214, allocations: 8.25 kB / 0.5552 GB, free: 5.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001729/0.3216, allocations: 184.7 kB / 0.5553 GB, free: 5.844 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3216, allocations: 0 / 0.5553 GB, free: 5.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.3219, allocations: 48.5 kB / 0.5554 GB, free: 5.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.0006201/0.3226, allocations: 0.8272 MB / 0.5562 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.3228, allocations: 155.7 kB / 0.5563 GB, free: 5.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3228, allocations: 1.219 kB / 0.5563 GB, free: 5.008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.323, allocations: 70.45 kB / 0.5564 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.3234, allocations: 58.69 kB / 0.5565 GB, free: 4.945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0029/0.3263, allocations: 2.558 MB / 0.559 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004066/0.3268, allocations: 0.7831 MB / 0.5597 GB, free: 1.652 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.3269, allocations: 38.28 kB / 0.5598 GB, free: 1.617 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.327, allocations: 95.39 kB / 0.5598 GB, free: 1.523 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.327, allocations: 0 / 0.5598 GB, free: 1.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.364, allocations: 5.21 MB / 0.5649 GB, free: 12.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.35, allocations: 22.88 kB / 0.565 GB, free: 12.44 MB / 414.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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: 14.210858534090221]