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.001829/0.001829, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002327/0.002327, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.54/1.54, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.002982/0.002982, allocations: 72.53 kB / 378.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3571, allocations: 53.36 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003922/0.361, allocations: 2.296 MB / 434.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.3629, allocations: 0.962 MB / 435.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.3631, allocations: 7.938 kB / 435.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.3633, allocations: 39.47 kB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003812/0.3636, allocations: 119.2 kB / 435.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.364, allocations: 159.7 kB / 435.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005073/0.3645, allocations: 434.8 kB / 435.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.3648, allocations: 84 kB / 436 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003367/0.3651, allocations: 183.3 kB / 436.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.3654, allocations: 195.1 kB / 436.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.748e-05/0.3655, allocations: 36 kB / 436.4 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.3656, allocations: 56 kB / 436.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3657, allocations: 99.59 kB / 436.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.3659, allocations: 179 kB / 436.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005359/0.3664, allocations: 419 kB / 437.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3664, allocations: 0 / 437.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3664, allocations: 3.938 kB / 437.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.3664, allocations: 0 / 437.1 MB, free: 1.676 MB / 334.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.001738/0.3681, allocations: 0.7707 MB / 437.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3682, allocations: 8.031 kB / 437.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.964e-05/0.3683, allocations: 66.72 kB / 438 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.3686, allocations: 60.64 kB / 438.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.3692, allocations: 322.7 kB / 438.4 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.3692, allocations: 20.81 kB / 438.4 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/0.3693, allocations: 32.36 kB / 438.4 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005421/0.3698, allocations: 263.3 kB / 438.7 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.3698, allocations: 3.953 kB / 438.7 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.3699, allocations: 8 kB / 438.7 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3699, allocations: 8 kB / 438.7 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005499/0.3704, allocations: 193.5 kB / 438.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.3718, allocations: 0.7431 MB / 439.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005126/0.3723, allocations: 182.7 kB / 439.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002386/0.3726, allocations: 80.8 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.3726, allocations: 11.92 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005074/0.3731, allocations: 241 kB / 440.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.455e-06/0.3731, allocations: 4 kB / 440.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001024/0.3741, allocations: 379.3 kB / 440.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.3742, allocations: 59.39 kB / 440.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.3746, allocations: 320.5 kB / 440.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.3746, allocations: 41.69 kB / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.3748, allocations: 184.7 kB / 441.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.147e-05/0.3749, allocations: 91.27 kB / 441.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.375, allocations: 78.06 kB / 441.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3752, allocations: 346.8 kB / 441.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.3754, allocations: 92.69 kB / 441.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003804/0.3758, allocations: 242.3 kB / 441.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.3765, allocations: 373.5 kB / 442.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.3765, allocations: 4 kB / 442.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008535/0.3773, allocations: 430.5 kB / 442.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.709e-05/0.3774, allocations: 33.7 kB / 442.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3774, allocations: 4 kB / 442.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.054e-05/0.3774, allocations: 11.98 kB / 442.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.3777, allocations: 64.38 kB / 442.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.408e-05/0.3777, allocations: 23.86 kB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.378, allocations: 39.77 kB / 442.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.3781, allocations: 20 kB / 442.9 MB, free: 11.55 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.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,pulse.T_start,$PRE.pulse.T_start,pulse.count,$PRE.pulse.count,$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.0002128/0.3783, allocations: 167.5 kB / 443.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.3783, allocations: 31.77 kB / 443.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007541/0.3791, allocations: 317.3 kB / 443.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3791, allocations: 0 / 443.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3791, allocations: 0 / 443.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3791, allocations: 8.031 kB / 443.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003816/0.3795, allocations: 340.4 kB / 443.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3795, allocations: 4 kB / 443.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.3797, allocations: 47.89 kB / 443.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.3797, allocations: 0 / 443.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/0.3798, allocations: 8 kB / 443.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.3798, allocations: 4 kB / 443.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3798, allocations: 3.938 kB / 443.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3808, allocations: 459.2 kB / 444.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.53e-05/0.3808, allocations: 35.77 kB / 444.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.866e-05/0.3809, allocations: 11.98 kB / 444.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.3811, allocations: 19.98 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.3812, allocations: 23.95 kB / 444.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.817e-05/0.3812, allocations: 15.98 kB / 444.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002647/0.3815, allocations: 231 kB / 444.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3815, allocations: 0 / 444.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003708/0.3819, allocations: 75.89 kB / 444.7 MB, free: 9.711 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last,pulse.count,pulse.T_start) * 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.001321/0.3832, allocations: 1.004 MB / 445.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007345/0.3839, allocations: 311.9 kB / 446 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3839, allocations: 320 / 446 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002968/0.3842, allocations: 115.8 kB / 446.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.3846, allocations: 53.05 kB / 446.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005092/0.3897, allocations: 3.501 MB / 449.7 MB, free: 4.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.3901, allocations: 0.7876 MB / 450.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001963/0.3903, allocations: 51.03 kB / 450.5 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.3905, allocations: 127.3 kB / 450.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of SimCode: time 1.283e-06/0.3905, allocations: 0 / 450.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04478/0.4353, allocations: 7.116 MB / 457.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.565/9, allocations: 3.562 kB / 457.7 MB, free: 12.48 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.655314557719976] Failed to read output from testmodel.py, exit status != 0: ['time', 'mean.y', 'rectifiedMean.y', 'rootMeanSquare.y', 'harmonic.mean1.y', 'harmonic.mean2.y'] 9.09356182301417 9.107442853 8.737810484 Calling exit ...