Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001625/0.001625, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00187/0.00187, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2347/0.2347, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica 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.002312/0.002312, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3594, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004264/0.3637, allocations: 2.93 MB / 0.5335 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.365, allocations: 0.6788 MB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.3652, allocations: 4.125 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.3654, allocations: 56.94 kB / 0.5342 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000164/0.3656, allocations: 90.19 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.3658, allocations: 94.73 kB / 0.5343 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.3662, allocations: 417.6 kB / 0.5347 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.3664, allocations: 117.4 kB / 0.5349 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.3667, allocations: 161.2 kB / 0.535 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.3669, allocations: 166.5 kB / 0.5352 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.325e-05/0.367, allocations: 34.16 kB / 0.5352 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.924e-05/0.367, allocations: 33.81 kB / 0.5352 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.836e-05/0.3671, allocations: 78.97 kB / 0.5353 GB, free: 9.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.3673, allocations: 161.4 kB / 0.5355 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.3677, allocations: 392.8 kB / 0.5358 GB, free: 9.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.3677, allocations: 5.453 kB / 0.5358 GB, free: 9.285 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3677, allocations: 3.938 kB / 0.5358 GB, free: 9.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.3678, allocations: 0 / 0.5358 GB, free: 9.281 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001057/0.3688, allocations: 0.647 MB / 0.5365 GB, free: 8.723 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3689, allocations: 10.39 kB / 0.5365 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.811e-05/0.3689, allocations: 67.97 kB / 0.5366 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.548e-05/0.369, allocations: 34.66 kB / 0.5366 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.3694, allocations: 265.1 kB / 0.5368 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.3695, allocations: 23.66 kB / 0.5369 GB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/0.3695, allocations: 27.16 kB / 0.5369 GB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006159/0.3701, allocations: 331.8 kB / 0.5372 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.3701, allocations: 1.125 kB / 0.5372 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.3702, allocations: 10.75 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.3702, allocations: 6.719 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.3707, allocations: 238.3 kB / 0.5375 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.3728, allocations: 1.256 MB / 0.5387 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007974/0.3737, allocations: 476.5 kB / 0.5391 GB, free: 6.625 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003217/0.374, allocations: 162.2 kB / 0.5393 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.374, allocations: 3.578 kB / 0.5393 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.3741, allocations: 41.05 kB / 0.5393 GB, free: 6.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.164e-06/0.3741, allocations: 0 / 0.5393 GB, free: 6.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003193/0.3773, allocations: 1.015 MB / 0.5403 GB, free: 5.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.3773, allocations: 54.5 kB / 0.5404 GB, free: 5.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/0.3777, allocations: 240.3 kB / 0.5406 GB, free: 5.652 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.3778, allocations: 30.89 kB / 0.5406 GB, free: 5.617 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.3779, allocations: 173 kB / 0.5408 GB, free: 5.457 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.378, allocations: 98.06 kB / 0.5409 GB, free: 5.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.3781, allocations: 53.64 kB / 0.5409 GB, free: 5.332 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.3783, allocations: 332.2 kB / 0.5413 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.3786, allocations: 105.2 kB / 0.5414 GB, free: 4.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003079/0.3789, allocations: 154.6 kB / 0.5415 GB, free: 4.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005323/0.3794, allocations: 236.6 kB / 0.5417 GB, free: 4.711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3795, allocations: 1.062 kB / 0.5417 GB, free: 4.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001257/0.3807, allocations: 0.4942 MB / 0.5422 GB, free: 4.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.3808, allocations: 5.781 kB / 0.5422 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3808, allocations: 1.188 kB / 0.5422 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009968/0.3818, allocations: 235.3 kB / 0.5424 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.3819, allocations: 32.52 kB / 0.5425 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004799/0.3867, allocations: 3.704 MB / 0.5461 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.3871, allocations: 27.75 kB / 0.5461 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.3871, allocations: 8.25 kB / 0.5461 GB, free: 0.9023 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002042/0.3873, allocations: 161.1 kB / 0.5463 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.818e-05/0.3874, allocations: 24.89 kB / 0.5463 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.151e-05/0.3874, allocations: 31.94 kB / 0.5463 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3875, allocations: 3.719 kB / 0.5463 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.117e-05/0.3875, allocations: 10.27 kB / 0.5463 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3875, allocations: 0 / 0.5463 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.3893, allocations: 0.8878 MB / 0.5472 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3893, allocations: 4 kB / 0.5472 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.237e-05/0.3894, allocations: 19.92 kB / 0.5472 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008954/0.3903, allocations: 233.5 kB / 0.5475 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.3904, allocations: 0 / 0.5475 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004454/0.3948, allocations: 3.689 MB / 0.5511 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3948, allocations: 64 / 0.5511 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.396, allocations: 0.5416 MB / 0.5516 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.3962, allocations: 124.8 kB / 0.5517 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.3962, allocations: 4 kB / 0.5517 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.3965, allocations: 31.97 kB / 0.5517 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.071e-05/0.3966, allocations: 27.97 kB / 0.5518 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.3966, allocations: 4 kB / 0.5518 GB, free: 10.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.3968, allocations: 180.4 kB / 0.5519 GB, free: 10.76 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3968, allocations: 3.938 kB / 0.552 GB, free: 10.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.3973, allocations: 107.9 kB / 0.5521 GB, free: 10.65 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001485/0.3988, allocations: 1.077 MB / 0.5531 GB, free: 9.543 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.3999, allocations: 0.5596 MB / 0.5537 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3999, allocations: 0 / 0.5537 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006765/0.4006, allocations: 441.2 kB / 0.5541 GB, free: 8.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.4011, allocations: 44.41 kB / 0.5541 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005022/0.4061, allocations: 3.05 MB / 0.5571 GB, free: 5.285 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.4065, allocations: 0.7639 MB / 0.5578 GB, free: 4.492 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.4067, allocations: 26.28 kB / 0.5579 GB, free: 4.469 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.4068, allocations: 75.41 kB / 0.5579 GB, free: 4.395 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4068, allocations: 0 / 0.5579 GB, free: 4.395 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.4453, allocations: 7.193 MB / 0.565 GB, free: 13.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.67, allocations: 8.812 kB / 0.565 GB, free: 13.41 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1)