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.001386/0.001386, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 247 MB, free: 10.41 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.2232/0.2232, allocations: 46.13 MB / 344.4 MB, free: 11.46 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.002283/0.002283, allocations: 75.88 kB / 480.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3211, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004553/0.3257, allocations: 2.934 MB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.3273, allocations: 0.6866 MB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.3275, allocations: 4.125 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.3278, allocations: 62.3 kB / 0.5342 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001927/0.328, allocations: 84.81 kB / 0.5343 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002117/0.3282, allocations: 94.73 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.3287, allocations: 413.3 kB / 0.5347 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.3289, allocations: 125.4 kB / 0.5349 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.3291, allocations: 158 kB / 0.535 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.3293, allocations: 165.3 kB / 0.5352 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.599e-05/0.3294, allocations: 34.84 kB / 0.5352 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.81e-05/0.3294, allocations: 33.72 kB / 0.5352 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.3295, allocations: 72.48 kB / 0.5353 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001712/0.3297, allocations: 169.1 kB / 0.5355 GB, free: 9.586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.3302, allocations: 391.8 kB / 0.5358 GB, free: 9.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3302, allocations: 1.375 kB / 0.5358 GB, free: 9.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.3302, allocations: 0 / 0.5358 GB, free: 9.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3302, allocations: 3.938 kB / 0.5359 GB, free: 9.297 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.001097/0.3313, allocations: 0.6473 MB / 0.5365 GB, free: 8.738 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3313, allocations: 9.703 kB / 0.5365 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.489e-05/0.3314, allocations: 64.39 kB / 0.5366 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.455e-05/0.3315, allocations: 38.58 kB / 0.5366 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.332, allocations: 269.6 kB / 0.5368 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.332, allocations: 19.59 kB / 0.5369 GB, free: 8.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.753e-05/0.332, allocations: 29.53 kB / 0.5369 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006297/0.3327, allocations: 325.7 kB / 0.5372 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3327, allocations: 0 / 0.5372 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/0.3328, allocations: 11.28 kB / 0.5372 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.3328, allocations: 10.66 kB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005355/0.3333, allocations: 238.3 kB / 0.5375 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.3355, allocations: 1.256 MB / 0.5387 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008594/0.3364, allocations: 480.8 kB / 0.5391 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000362/0.3367, allocations: 157.9 kB / 0.5393 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.3368, allocations: 2.891 kB / 0.5393 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.3368, allocations: 41.7 kB / 0.5393 GB, free: 6.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.535e-06/0.3368, allocations: 0 / 0.5393 GB, free: 6.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003347/0.3402, allocations: 1.019 MB / 0.5403 GB, free: 5.898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.3402, allocations: 54.16 kB / 0.5404 GB, free: 5.836 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.3406, allocations: 239.9 kB / 0.5406 GB, free: 5.664 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.3406, allocations: 27.11 kB / 0.5406 GB, free: 5.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.3408, allocations: 174.4 kB / 0.5408 GB, free: 5.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.597e-05/0.3409, allocations: 97.25 kB / 0.5409 GB, free: 5.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.341, allocations: 57.95 kB / 0.5409 GB, free: 5.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3412, allocations: 335.1 kB / 0.5413 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.3415, allocations: 98.05 kB / 0.5414 GB, free: 4.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.3418, allocations: 158.5 kB / 0.5415 GB, free: 4.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/0.3423, allocations: 241.4 kB / 0.5417 GB, free: 4.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3423, allocations: 0 / 0.5417 GB, free: 4.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001195/0.3435, allocations: 498 kB / 0.5422 GB, free: 4.453 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.3436, allocations: 5.594 kB / 0.5422 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3436, allocations: 1.031 kB / 0.5422 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3446, allocations: 235.5 kB / 0.5424 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.3448, allocations: 32.58 kB / 0.5425 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004681/0.3495, allocations: 3.701 MB / 0.5461 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.3497, allocations: 31.77 kB / 0.5461 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.3498, allocations: 7.344 kB / 0.5461 GB, free: 0.918 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.0001911/0.35, allocations: 154.5 kB / 0.5463 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.35, allocations: 24.95 kB / 0.5463 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.707e-05/0.3501, allocations: 35.42 kB / 0.5463 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3501, allocations: 7.469 kB / 0.5463 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.3501, allocations: 6.219 kB / 0.5463 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.3502, allocations: 5.109 kB / 0.5464 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.3519, allocations: 0.8846 MB / 0.5472 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3519, allocations: 0 / 0.5472 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.779e-05/0.352, allocations: 19.94 kB / 0.5472 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008892/0.3529, allocations: 233.4 kB / 0.5475 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.3529, allocations: 4 kB / 0.5475 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004356/0.3573, allocations: 3.693 MB / 0.5511 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3573, allocations: 3.938 kB / 0.5511 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.3584, allocations: 0.53 MB / 0.5516 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.3586, allocations: 132.8 kB / 0.5517 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.3586, allocations: 8 kB / 0.5517 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.3589, allocations: 23.98 kB / 0.5517 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.382e-05/0.359, allocations: 27.95 kB / 0.5518 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.359, allocations: 11.94 kB / 0.5518 GB, free: 10.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001777/0.3592, allocations: 176.4 kB / 0.552 GB, free: 10.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3592, allocations: 4 kB / 0.552 GB, free: 10.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004788/0.3597, allocations: 107.9 kB / 0.5521 GB, free: 10.68 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.001519/0.3612, allocations: 1.072 MB / 0.5531 GB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.3623, allocations: 0.5635 MB / 0.5537 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3624, allocations: 4.062 kB / 0.5537 GB, free: 8.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.363, allocations: 433.1 kB / 0.5541 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.3635, allocations: 52.36 kB / 0.5541 GB, free: 8.488 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004954/0.3684, allocations: 3.044 MB / 0.5571 GB, free: 5.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.3689, allocations: 0.7639 MB / 0.5578 GB, free: 4.527 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.369, allocations: 18.3 kB / 0.5579 GB, free: 4.512 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.3691, allocations: 75.41 kB / 0.5579 GB, free: 4.438 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3691, allocations: 0 / 0.5579 GB, free: 4.438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.4036, allocations: 7.206 MB / 0.565 GB, free: 13.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.65, allocations: 0.75 kB / 0.565 GB, free: 13.44 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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)