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.00133/0.00133, allocations: 120 kB / 18.5 MB, free: 4.52 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.001607/0.001607, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.583/1.583, allocations: 230.5 MB / 254.8 MB, free: 15.12 MB / 206.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.002238/0.002238, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1106, allocations: 53.32 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003721/0.1143, allocations: 2.301 MB / 429.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1161, allocations: 0.9464 MB / 430.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.1162, allocations: 7.938 kB / 430.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.1164, allocations: 43.47 kB / 430.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.1168, allocations: 111.2 kB / 430.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.1171, allocations: 163.7 kB / 430.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004861/0.1176, allocations: 426.9 kB / 431 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.1179, allocations: 91.42 kB / 431.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.1182, allocations: 195.2 kB / 431.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.1185, allocations: 187.1 kB / 431.5 MB, free: 348 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.987e-05/0.1185, allocations: 40 kB / 431.5 MB, free: 308 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.1186, allocations: 55.98 kB / 431.5 MB, free: 252 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.998e-05/0.1187, allocations: 91.67 kB / 431.6 MB, free: 160 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2259/0.3446, allocations: 185.3 kB / 431.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007335/0.3454, allocations: 411.1 kB / 432.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3454, allocations: 1.344 kB / 432.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3454, allocations: 0 / 432.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.3454, allocations: 0 / 432.2 MB, free: 8.027 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.001479/0.3469, allocations: 0.7336 MB / 433 MB, free: 7.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3469, allocations: 12.19 kB / 433 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.399e-05/0.347, allocations: 58.64 kB / 433 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003133/0.3473, allocations: 68.64 kB / 433.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005237/0.3478, allocations: 383.2 kB / 433.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.3478, allocations: 22.88 kB / 433.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.3479, allocations: 34.94 kB / 433.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/0.3484, allocations: 254.4 kB / 433.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.3485, allocations: 2.5 kB / 433.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.3485, allocations: 7.688 kB / 433.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.3485, allocations: 5.844 kB / 433.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004997/0.349, allocations: 190.2 kB / 434 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.3502, allocations: 0.7864 MB / 434.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004794/0.3506, allocations: 174.3 kB / 434.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.3509, allocations: 84.33 kB / 435 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.3509, allocations: 6.234 kB / 435 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004704/0.3514, allocations: 242 kB / 435.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.3514, allocations: 0 / 435.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009936/0.3524, allocations: 382.3 kB / 435.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.3524, allocations: 63.34 kB / 435.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.3527, allocations: 326.5 kB / 436 MB, free: 6.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.3528, allocations: 37.53 kB / 436 MB, free: 6.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3529, allocations: 181 kB / 436.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.3529, allocations: 92.55 kB / 436.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.3531, allocations: 74.67 kB / 436.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.419e-05/0.3531, allocations: 345.8 kB / 436.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.3534, allocations: 97.89 kB / 436.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.3537, allocations: 234.6 kB / 437 MB, free: 5.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005865/0.3543, allocations: 376 kB / 437.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3543, allocations: 1.156 kB / 437.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008076/0.3551, allocations: 431 kB / 437.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.655e-05/0.3552, allocations: 34.75 kB / 437.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.3552, allocations: 5.656 kB / 437.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.3552, allocations: 10.23 kB / 437.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.3555, allocations: 77.28 kB / 438 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.3555, allocations: 9.094 kB / 438 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.3558, allocations: 43.73 kB / 438 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.3558, allocations: 20 kB / 438 MB, free: 5.516 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.0001541/0.356, allocations: 170.4 kB / 438.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.356, allocations: 36.16 kB / 438.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007281/0.3568, allocations: 315.5 kB / 438.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.3568, allocations: 2.719 kB / 438.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3568, allocations: 1.219 kB / 438.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3568, allocations: 1.5 kB / 438.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003137/0.3571, allocations: 363 kB / 438.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3571, allocations: 4 kB / 438.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000229/0.3573, allocations: 40.66 kB / 438.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3573, allocations: 1.312 kB / 438.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.3574, allocations: 9.609 kB / 439 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3574, allocations: 2.281 kB / 439 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3574, allocations: 1.828 kB / 439 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009317/0.3583, allocations: 463.2 kB / 439.4 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.967e-05/0.3583, allocations: 115.1 kB / 439.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.482e-05/0.3584, allocations: 8.891 kB / 439.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.3586, allocations: 20.41 kB / 439.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.3587, allocations: 27.06 kB / 439.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.3587, allocations: 14.5 kB / 439.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.359, allocations: 236.4 kB / 439.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.359, allocations: 0 / 439.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.3593, allocations: 68.88 kB / 439.9 MB, free: 4.812 MB / 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.001162/0.3605, allocations: 1 MB / 440.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006801/0.3612, allocations: 313.7 kB / 441.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3612, allocations: 0 / 441.2 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002939/0.3615, allocations: 115.3 kB / 441.3 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.3618, allocations: 53.5 kB / 441.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004593/0.3664, allocations: 3.495 MB / 444.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.3667, allocations: 0.7896 MB / 445.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001855/0.3669, allocations: 52.08 kB / 445.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.367, allocations: 117.4 kB / 445.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.367, allocations: 0 / 445.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03582/0.4029, allocations: 6.977 MB / 452.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.278/8.681, allocations: 11.16 kB / 452.8 MB, free: 15.56 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: 11.375440834090114] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.y', 'rectifiedMean.y', 'rootMeanSquare.y', 'harmonic.mean1.y', 'harmonic.mean2.y'] 8.769857896026224 8.790339348 8.441083891 Calling exit ...