Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Tables.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",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.001674/0.001674, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 239.2 MB, free: 4.648 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001435, allocations: 196.4 kB / 289.6 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03623/0.03623, allocations: 8.805 MB / 348.5 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00266/0.00266, allocations: 78.62 kB / 411.2 MB, free: 42.22 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1104, allocations: 51.56 MB / 462.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.004748/0.1152, allocations: 2.151 MB / 464.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.1171, allocations: 0.9547 MB / 465.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.1173, allocations: 3.938 kB / 465.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004204/0.1178, allocations: 107.6 kB / 466 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004366/0.1183, allocations: 107.4 kB / 466.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.1187, allocations: 130 kB / 466.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003487/0.1191, allocations: 219.2 kB / 466.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.1193, allocations: 53.64 kB / 466.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.1194, allocations: 87.7 kB / 466.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.1196, allocations: 99.59 kB / 466.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.1197, allocations: 16 kB / 466.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.1199, allocations: 59.91 kB / 466.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.229e-05/0.12, allocations: 39.84 kB / 466.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.1201, allocations: 87.48 kB / 466.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004084/0.1205, allocations: 227.5 kB / 467.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1206, allocations: 0 / 467.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1206, allocations: 4 kB / 467.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1206, allocations: 0 / 467.1 MB, free: 10.09 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009262/0.1215, allocations: 0.5127 MB / 467.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.1216, allocations: 8.031 kB / 467.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.248e-05/0.1216, allocations: 38.75 kB / 467.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.454e-05/0.1217, allocations: 24.66 kB / 467.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.122, allocations: 245.1 kB / 467.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1221, allocations: 16.48 kB / 467.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.1221, allocations: 15.94 kB / 467.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.1224, allocations: 119.5 kB / 468 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1224, allocations: 4 kB / 468 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.1224, allocations: 4 kB / 468 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.1224, allocations: 4 kB / 468 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.1226, allocations: 68.61 kB / 468.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008894/0.1235, allocations: 0.5535 MB / 468.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003932/0.1239, allocations: 106.6 kB / 468.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.163e-05/0.124, allocations: 44.84 kB / 468.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.124, allocations: 0 / 468.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002689/0.1243, allocations: 97.03 kB / 468.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.173e-06/0.1243, allocations: 0 / 468.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.000436/0.1248, allocations: 145.4 kB / 469.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.1248, allocations: 81.11 kB / 469.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.1252, allocations: 260.2 kB / 469.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.1252, allocations: 29.69 kB / 469.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.1253, allocations: 143.6 kB / 469.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.45e-05/0.1253, allocations: 31.55 kB / 469.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-05/0.1254, allocations: 37.7 kB / 469.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1255, allocations: 330.8 kB / 469.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.318e-05/0.1256, allocations: 31.92 kB / 470 MB, free: 6.922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-05/0.1257, allocations: 68.22 kB / 470 MB, free: 6.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.1259, allocations: 87.36 kB / 470.1 MB, free: 6.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.1259, allocations: 4 kB / 470.1 MB, free: 6.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002511/0.1262, allocations: 141.8 kB / 470.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1262, allocations: 4 kB / 470.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1262, allocations: 4 kB / 470.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1262, allocations: 0 / 470.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1263, allocations: 23.94 kB / 470.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.1264, allocations: 11.92 kB / 470.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.927e-05/0.1265, allocations: 11.91 kB / 470.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.1265, allocations: 4 kB / 470.3 MB, free: 6.535 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.table.nextTimeEvent,$whenCondition1,table.nextTimeEventScaled,$PRE.table.nextTimeEventScaled,table.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001443/0.1266, allocations: 156.3 kB / 470.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/0.1267, allocations: 15.81 kB / 470.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.607e-05/0.1267, allocations: 25.39 kB / 470.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1268, allocations: 0 / 470.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1268, allocations: 0 / 470.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1268, allocations: 4 kB / 470.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.127, allocations: 245.4 kB / 470.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.127, allocations: 0 / 470.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.589e-05/0.1271, allocations: 15.94 kB / 470.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1271, allocations: 0 / 470.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.1271, allocations: 4 kB / 470.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.1272, allocations: 7.984 kB / 470.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1272, allocations: 0 / 470.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.1275, allocations: 180.8 kB / 471 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.1276, allocations: 88.95 kB / 471.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.1276, allocations: 4 kB / 471.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.361e-05/0.1277, allocations: 12.05 kB / 471.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/0.1278, allocations: 7.984 kB / 471.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.1278, allocations: 11.94 kB / 471.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.128, allocations: 193.6 kB / 471.3 MB, free: 5.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.128, allocations: 0 / 471.3 MB, free: 5.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002661/0.1283, allocations: 39.84 kB / 471.3 MB, free: 5.449 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 3 ($whenCondition1,table.nextTimeEvent,table.nextTimeEventScaled) * Number of discrete states: 2 (table.nextTimeEventScaled,table.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001544/0.1298, allocations: 1.022 MB / 472.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002612/0.1301, allocations: 83.84 kB / 472.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1301, allocations: 4 kB / 472.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.833e-05/0.1302, allocations: 31.98 kB / 472.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.1305, allocations: 45.64 kB / 472.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.1331, allocations: 2.054 MB / 474.6 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.1334, allocations: 0.7358 MB / 475.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.655e-05/0.1335, allocations: 25.52 kB / 475.3 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.202e-05/0.1336, allocations: 59.41 kB / 475.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1336, allocations: 0 / 475.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03013/0.1638, allocations: 4.306 MB / 479.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.796, allocations: 3.781 kB / 479.7 MB, free: 13.17 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Electrical.Tables.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Tables.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Tables.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Tables.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Tables_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Tables.fmu > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)