Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",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.00111/0.00111, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.001113/0.001113, allocations: 198.9 kB / 18 MB, free: 5.078 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.33/1.33, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1806/0.1806, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 63.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3642, allocations: 58.05 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005381/0.3696, allocations: 4.506 MB / 0.508 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.372, allocations: 1.409 MB / 0.5094 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000386/0.3724, allocations: 16.06 kB / 0.5094 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.3734, allocations: 294.7 kB / 0.5097 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000844/0.3743, allocations: 283.2 kB / 0.51 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008294/0.3751, allocations: 253 kB / 0.5102 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.3762, allocations: 0.665 MB / 0.5109 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005055/0.3767, allocations: 246.2 kB / 0.5111 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006803/0.3774, allocations: 305.4 kB / 0.5114 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009235/0.3783, allocations: 412.7 kB / 0.5118 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002599/0.3786, allocations: 44.91 kB / 0.5118 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008522/0.3795, allocations: 217.8 kB / 0.512 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004857/0.38, allocations: 248.7 kB / 0.5123 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004739/0.3804, allocations: 290.4 kB / 0.5125 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.3818, allocations: 0.75 MB / 0.5133 GB, free: 1.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3819, allocations: 7.938 kB / 0.5133 GB, free: 1.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.3819, allocations: 1.125 kB / 0.5133 GB, free: 1.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.3819, allocations: 0 / 0.5133 GB, free: 1.668 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001744/0.3836, allocations: 0.8824 MB / 0.5141 GB, free: 1.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.3837, allocations: 12.89 kB / 0.5141 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.3838, allocations: 93.39 kB / 0.5142 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005966/0.3844, allocations: 101.1 kB / 0.5143 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006541/0.3851, allocations: 437.3 kB / 0.5148 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.3851, allocations: 29.83 kB / 0.5148 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3852, allocations: 47.61 kB / 0.5148 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.3867, allocations: 0.8615 MB / 0.5157 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.3868, allocations: 1.094 kB / 0.5157 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.544e-05/0.3868, allocations: 17.34 kB / 0.5157 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002098/0.387, allocations: 59.52 kB / 0.5157 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.3886, allocations: 0.8029 MB / 0.5165 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004053/0.3927, allocations: 2.717 MB / 0.5192 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009689/0.3936, allocations: 0.582 MB / 0.5197 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005504/0.3942, allocations: 455.3 kB / 0.5202 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.3943, allocations: 5.094 kB / 0.5202 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.3943, allocations: 41.62 kB / 0.5202 GB, free: 13.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 3.096e-06/0.3943, allocations: 0 / 0.5202 GB, free: 13.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003458/0.3978, allocations: 1.885 MB / 0.5221 GB, free: 12.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.3979, allocations: 144.5 kB / 0.5222 GB, free: 12.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004519/0.3984, allocations: 297.9 kB / 0.5225 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.348e-05/0.3984, allocations: 31.8 kB / 0.5225 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.3987, allocations: 256.1 kB / 0.5228 GB, free: 12.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.3989, allocations: 186.4 kB / 0.5229 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.3991, allocations: 102.5 kB / 0.523 GB, free: 12.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3993, allocations: 355.5 kB / 0.5234 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.3998, allocations: 339.3 kB / 0.5237 GB, free: 11.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006112/0.4004, allocations: 484.5 kB / 0.5242 GB, free: 11.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.4018, allocations: 0.9888 MB / 0.5251 GB, free: 10.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.4018, allocations: 1.438 kB / 0.5251 GB, free: 10.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001893/0.4037, allocations: 0.9772 MB / 0.5261 GB, free: 10.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.321e-05/0.4038, allocations: 79.12 kB / 0.5262 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.4038, allocations: 9.906 kB / 0.5262 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001926/0.404, allocations: 41.77 kB / 0.5262 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.4044, allocations: 85.19 kB / 0.5263 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/0.4059, allocations: 1.546 MB / 0.5278 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004308/0.4063, allocations: 37.56 kB / 0.5278 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.663e-05/0.4064, allocations: 34.81 kB / 0.5279 GB, free: 8.938 MB / 398.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: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005707/0.407, allocations: 298.7 kB / 0.5282 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.4072, allocations: 41.45 kB / 0.5282 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.4089, allocations: 1.084 MB / 0.5293 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.63e-05/0.4089, allocations: 11.66 kB / 0.5293 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4089, allocations: 2.297 kB / 0.5293 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.409, allocations: 6.422 kB / 0.5293 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.4119, allocations: 1.79 MB / 0.531 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.4119, allocations: 5.031 kB / 0.531 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002785/0.4122, allocations: 54.8 kB / 0.5311 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.4123, allocations: 41.58 kB / 0.5311 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.222e-05/0.4124, allocations: 16.75 kB / 0.5311 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.4137, allocations: 1.549 MB / 0.5326 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4137, allocations: 1.062 kB / 0.5326 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.4154, allocations: 1.176 MB / 0.5338 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.4157, allocations: 177.1 kB / 0.534 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.999e-05/0.4158, allocations: 13.56 kB / 0.534 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003019/0.4161, allocations: 29.88 kB / 0.534 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.4162, allocations: 45.55 kB / 0.534 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.912e-05/0.4163, allocations: 20.06 kB / 0.5341 GB, free: 5.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.4166, allocations: 204.2 kB / 0.5343 GB, free: 5.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4166, allocations: 4.875 kB / 0.5343 GB, free: 5.172 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008451/0.4174, allocations: 135.8 kB / 0.5344 GB, free: 5.164 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002564/0.42, allocations: 1.772 MB / 0.5361 GB, free: 3.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.4224, allocations: 1.368 MB / 0.5375 GB, free: 3.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4224, allocations: 5.062 kB / 0.5375 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.4235, allocations: 0.9291 MB / 0.5384 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006615/0.4242, allocations: 63.44 kB / 0.5384 GB, free: 2.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008491/0.4327, allocations: 5.869 MB / 0.5442 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006571/0.4334, allocations: 0.9054 MB / 0.5451 GB, free: 12.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000327/0.4337, allocations: 107.1 kB / 0.5452 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.434, allocations: 155.4 kB / 0.5453 GB, free: 12.66 MB / 414.1 MB Notification: Performance of SimCode: time 1.442e-06/0.434, allocations: 4 kB / 0.5453 GB, free: 12.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03459/0.4686, allocations: 10.45 MB / 0.5555 GB, free: 2.355 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.854/10.32, allocations: 3.984 kB / 0.5555 GB, free: 2.352 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches