Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001389/0.001389, allocations: 116.4 kB / 18.45 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001655/0.001655, allocations: 208.9 kB / 21.41 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.544/1.544, allocations: 227.7 MB / 251.9 MB, free: 24 kB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 71.84 kB / 365.2 MB, free: 220 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1055, allocations: 50.55 MB / 415.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003678/0.1092, allocations: 2.286 MB / 418.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.1113, allocations: 0.9502 MB / 419 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002005/0.1115, allocations: 4 kB / 419 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.1118, allocations: 31.55 kB / 419 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004153/0.1122, allocations: 107.2 kB / 419.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.1126, allocations: 171.7 kB / 419.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005332/0.1132, allocations: 426.8 kB / 419.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/0.1135, allocations: 123.5 kB / 419.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003626/0.1138, allocations: 183.3 kB / 420 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003131/0.1142, allocations: 195 kB / 420.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.443e-05/0.1143, allocations: 44 kB / 420.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.1144, allocations: 48 kB / 420.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.1145, allocations: 95.66 kB / 420.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.1147, allocations: 179 kB / 420.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005579/0.1153, allocations: 418.2 kB / 421 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1153, allocations: 0 / 421 MB, free: 8.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1153, allocations: 0 / 421 MB, free: 8.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.1153, allocations: 0 / 421 MB, free: 8.375 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001659/0.117, allocations: 0.7324 MB / 421.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.117, allocations: 12.03 kB / 421.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.154e-05/0.1171, allocations: 58.66 kB / 421.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003509/0.1175, allocations: 68.64 kB / 421.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007037/0.1182, allocations: 388.6 kB / 422.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.754e-05/0.1182, allocations: 20.81 kB / 422.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.678e-05/0.1183, allocations: 28.38 kB / 422.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006137/0.1189, allocations: 259.3 kB / 422.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.119, allocations: 0 / 422.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.119, allocations: 12 kB / 422.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.119, allocations: 4 kB / 422.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005285/0.1195, allocations: 189.5 kB / 422.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.121, allocations: 0.783 MB / 423.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005203/0.1215, allocations: 198.7 kB / 423.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.1218, allocations: 84.81 kB / 423.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.1219, allocations: 11.91 kB / 423.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005133/0.1224, allocations: 237 kB / 424 MB, free: 5.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.545e-06/0.1224, allocations: 0 / 424 MB, free: 5.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001075/0.1235, allocations: 387.3 kB / 424.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.1235, allocations: 59.41 kB / 424.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003997/0.1239, allocations: 320.5 kB / 424.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.124, allocations: 37.7 kB / 424.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.1242, allocations: 188.7 kB / 425 MB, free: 4.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.421e-05/0.1243, allocations: 87.27 kB / 425.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.1244, allocations: 74.06 kB / 425.2 MB, free: 3.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1246, allocations: 350.8 kB / 425.5 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.1249, allocations: 100.7 kB / 425.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003984/0.1253, allocations: 230.5 kB / 425.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006771/0.126, allocations: 384.9 kB / 426.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.126, allocations: 0 / 426.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008925/0.1269, allocations: 430.8 kB / 426.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.1269, allocations: 33.7 kB / 426.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.1269, allocations: 8 kB / 426.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.127, allocations: 4 kB / 426.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.1273, allocations: 71.89 kB / 426.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.1273, allocations: 11.94 kB / 426.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.1276, allocations: 40.02 kB / 426.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.1276, allocations: 19.98 kB / 426.8 MB, free: 2.172 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 (rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * 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.0002197/0.1279, allocations: 167.4 kB / 427 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.167e-05/0.1279, allocations: 35.8 kB / 427 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007661/0.1287, allocations: 314.2 kB / 427.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.1287, allocations: 4 kB / 427.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1287, allocations: 0 / 427.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1287, allocations: 0 / 427.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004303/0.1292, allocations: 369.2 kB / 427.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1292, allocations: 0 / 427.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.1294, allocations: 44.03 kB / 427.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1294, allocations: 3.938 kB / 427.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.808e-05/0.1295, allocations: 11.98 kB / 427.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.1295, allocations: 4 kB / 427.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1295, allocations: 0 / 427.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.1305, allocations: 457.4 kB / 428.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.633e-05/0.1306, allocations: 120.7 kB / 428.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.453e-05/0.1307, allocations: 8.062 kB / 428.3 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.1309, allocations: 19.97 kB / 428.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.131, allocations: 32 kB / 428.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.131, allocations: 11.98 kB / 428.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002572/0.1313, allocations: 231 kB / 428.6 MB, free: 272 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1313, allocations: 0 / 428.6 MB, free: 272 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.1317, allocations: 71.89 kB / 428.7 MB, free: 200 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 6 (pulse.count,mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001323/0.133, allocations: 1.003 MB / 429.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007123/0.1337, allocations: 325.6 kB / 430 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1337, allocations: 5 kB / 430 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.134, allocations: 127.9 kB / 430.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.1344, allocations: 52.94 kB / 430.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004945/0.1394, allocations: 3.491 MB / 433.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.1398, allocations: 0.7837 MB / 434.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.14, allocations: 47.03 kB / 434.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.1402, allocations: 127.4 kB / 434.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1402, allocations: 0 / 434.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03149/0.1717, allocations: 6.906 MB / 441.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.064/9.236, allocations: 1.875 kB / 441.5 MB, free: 3.18 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0005 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.017375872004777] Failed to read output from testmodel.py, exit status != 0: 9.33245375007391 9.592155509 9.473494505 Calling exit ...