Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008585/0.0008585, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009015/0.0009015, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9004/0.9004, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346e-05/1.499e-05, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.00778/0.007795, allocations: 11.96 MB / 330.4 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01559/0.02339, allocations: 17.54 MB / 347.9 MB, free: 8.73 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.02477, allocations: 193.8 kB / 348.1 MB, free: 8.539 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.02662, allocations: 1.04 MB / 349.2 MB, free: 7.492 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004523/0.03115, allocations: 2.397 MB / 351.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002866/0.03401, allocations: 1.445 MB / 353 MB, free: 3.625 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006002/0.04002, allocations: 6.636 MB / 359.6 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004567/0.04047, allocations: 245 kB / 359.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.04196, allocations: 1.531 MB / 361.4 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008843/0.04285, allocations: 0.7862 MB / 362.2 MB, free: 10.37 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.04296, allocations: 76 kB / 362.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001917/0.04488, allocations: 1.202 MB / 363.5 MB, free: 9.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001672/0.04505, allocations: 329.6 kB / 363.8 MB, free: 8.766 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005227/0.04557, allocations: 0.7165 MB / 364.5 MB, free: 8.047 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002736/0.0483, allocations: 3.686 MB / 368.2 MB, free: 4.348 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.04831, allocations: 7.938 kB / 368.2 MB, free: 4.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.04831, allocations: 0 / 368.2 MB, free: 4.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.512e-05/0.04835, allocations: 4 kB / 368.2 MB, free: 4.336 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.003436/0.05178, allocations: 3.566 MB / 371.8 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.05184, allocations: 8.922 kB / 371.8 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001017/0.05194, allocations: 98.5 kB / 371.9 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002969/0.05224, allocations: 393.5 kB / 372.3 MB, free: 224 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00233/0.05457, allocations: 2.378 MB / 374.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.0546, allocations: 33 kB / 374.7 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-05/0.05469, allocations: 59.89 kB / 374.7 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009423/0.05563, allocations: 0.7577 MB / 375.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.05565, allocations: 0 / 375.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.73e-05/0.05569, allocations: 19.98 kB / 375.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.05571, allocations: 16 kB / 375.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.05689, allocations: 0.8631 MB / 376.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002873/0.05977, allocations: 2.763 MB / 379.1 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.06083, allocations: 0.7208 MB / 379.9 MB, free: 8.434 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008921/0.06173, allocations: 0.872 MB / 380.7 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01439/0.07612, allocations: 13.63 MB / 394.4 MB, free: 9.547 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007289/0.07685, allocations: 0.5996 MB / 395 MB, free: 8.934 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 2.876e-06/0.07685, allocations: 0 / 395 MB, free: 8.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.006492/0.08334, allocations: 4.525 MB / 399.5 MB, free: 4.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.08339, allocations: 68.41 kB / 399.6 MB, free: 4.266 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002198/0.08559, allocations: 2.7 MB / 402.3 MB, free: 1.551 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.031e-05/0.08565, allocations: 45.7 kB / 402.3 MB, free: 1.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007851/0.08643, allocations: 1.3 MB / 403.6 MB, free: 200 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.08666, allocations: 353.1 kB / 403.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.08689, allocations: 238.3 kB / 404.2 MB, free: 15.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.08698, allocations: 345.9 kB / 404.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007167/0.0877, allocations: 474 kB / 405 MB, free: 14.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007599/0.08846, allocations: 0.647 MB / 405.6 MB, free: 14.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/0.08997, allocations: 1.137 MB / 406.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.08997, allocations: 0 / 406.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002336/0.09231, allocations: 1.827 MB / 408.6 MB, free: 11.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.09233, allocations: 8.531 kB / 408.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.35e-05/0.09242, allocations: 127.9 kB / 408.7 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004148/0.09284, allocations: 268.4 kB / 409 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004375/0.09327, allocations: 187.7 kB / 409.2 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005591/0.09886, allocations: 13.19 MB / 422.4 MB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006098/0.09947, allocations: 96.02 kB / 422.4 MB, free: 12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-05/0.09955, allocations: 56 kB / 422.5 MB, free: 11.94 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000527/0.1001, allocations: 421.7 kB / 422.9 MB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.1003, allocations: 397.5 kB / 423.3 MB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.1031, allocations: 2.052 MB / 425.4 MB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1031, allocations: 8 kB / 425.4 MB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1031, allocations: 4 kB / 425.4 MB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.1031, allocations: 3.984 kB / 425.4 MB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.1042, allocations: 1.386 MB / 426.8 MB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.184e-05/0.1043, allocations: 119.9 kB / 426.9 MB, free: 7.465 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003439/0.1046, allocations: 135.8 kB / 427 MB, free: 7.332 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003442/0.105, allocations: 264.3 kB / 427.3 MB, free: 7.043 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.897e-05/0.105, allocations: 43.98 kB / 427.3 MB, free: 7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005325/0.1104, allocations: 13.18 MB / 440.5 MB, free: 8.672 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1104, allocations: 0 / 440.5 MB, free: 8.672 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002981/0.1133, allocations: 2.407 MB / 442.9 MB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005045/0.1138, allocations: 435.3 kB / 443.3 MB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.114, allocations: 27.92 kB / 443.3 MB, free: 5.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004887/0.1145, allocations: 79.89 kB / 443.4 MB, free: 5.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.1148, allocations: 136.8 kB / 443.6 MB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.979e-05/0.1148, allocations: 51.98 kB / 443.6 MB, free: 5.496 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001621/0.1164, allocations: 1.774 MB / 445.4 MB, free: 3.715 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1164, allocations: 0 / 445.4 MB, free: 3.715 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001015/0.1174, allocations: 0.6557 MB / 446 MB, free: 3.059 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.131/0.2485, allocations: 3.722 MB / 449.8 MB, free: 124.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.2514, allocations: 2.448 MB / 452.2 MB, free: 123.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2514, allocations: 0 / 452.2 MB, free: 123.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.2527, allocations: 1.9 MB / 454.1 MB, free: 121.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.2541, allocations: 0.608 MB / 454.7 MB, free: 121.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/0.2701, allocations: 17.75 MB / 472.5 MB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005832/0.2706, allocations: 1.108 MB / 473.6 MB, free: 106.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006553/0.2713, allocations: 398 kB / 474 MB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006205/0.2719, allocations: 1.195 MB / 475.2 MB, free: 105.1 MB / 410.7 MB Notification: Performance of SimCode: time 9.12e-07/0.2719, allocations: 0 / 475.2 MB, free: 105.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07866/0.3506, allocations: 70.83 MB / 0.5332 GB, free: 34.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.71, allocations: 7.188 kB / 0.5332 GB, free: 34.95 MB / 410.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997606 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.515092864632607] Failed to read output from testmodel.py, exit status != 0: ['time', 'mn1.Dinternal', 'mn1.Sinternal', 'mn2.Dinternal', 'mn2.Sinternal', 'mp1.Dinternal', 'mp1.Sinternal', 'mp2.Dinternal', 'mp2.Sinternal'] 10.832460687495768 10.837983733 10.788259965 Calling exit ...