Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 118.3 kB / 19.17 MB, free: 3.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 205.7 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 207.6 MB / 232.5 MB, free: 11.52 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 55.94 kB / 343 MB, free: 12.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.254, allocations: 49.13 MB / 392.1 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01148/0.2655, allocations: 13.57 MB / 405.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02533/0.2908, allocations: 19.44 MB / 425.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003316/0.2941, allocations: 197.7 kB / 425.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00361/0.2977, allocations: 1.101 MB / 426.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009191/0.3069, allocations: 2.275 MB / 428.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005793/0.3127, allocations: 1.39 MB / 430.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.3241, allocations: 6.307 MB / 436.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007278/0.3249, allocations: 248.6 kB / 436.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.3267, allocations: 1.046 MB / 437.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.328, allocations: 1.06 MB / 438.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.3281, allocations: 76 kB / 438.8 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004187/0.3323, allocations: 1.156 MB / 440 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000451/0.3328, allocations: 321.7 kB / 440.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001873/0.3347, allocations: 1.339 MB / 441.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006505/0.3412, allocations: 3.733 MB / 445.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3412, allocations: 0 / 445.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3412, allocations: 0 / 445.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.647e-05/0.3412, allocations: 0 / 445.3 MB, free: 14.92 MB / 366.1 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.005644/0.3469, allocations: 3.704 MB / 449 MB, free: 11.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.3469, allocations: 8.031 kB / 449.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.72e-05/0.347, allocations: 13 kB / 449.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.3471, allocations: 106.5 kB / 449.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005029/0.3476, allocations: 401.5 kB / 449.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003652/0.3512, allocations: 2.579 MB / 452.1 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.458e-05/0.3513, allocations: 36.98 kB / 452.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.3514, allocations: 48 kB / 452.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.3529, allocations: 0.7538 MB / 453 MB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3529, allocations: 0 / 453 MB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.63e-05/0.353, allocations: 20 kB / 453 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.353, allocations: 19.98 kB / 453 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001908/0.3549, allocations: 0.8592 MB / 453.9 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005087/0.36, allocations: 2.987 MB / 456.9 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.3618, allocations: 0.7168 MB / 457.6 MB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.3633, allocations: 0.8627 MB / 458.4 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03243/0.3958, allocations: 30.12 MB / 488.6 MB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.397, allocations: 0.5996 MB / 489.2 MB, free: 14.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.625e-06/0.397, allocations: 4 kB / 489.2 MB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01293/0.4099, allocations: 5.281 MB / 494.5 MB, free: 9.203 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.41, allocations: 72.39 kB / 494.5 MB, free: 9.121 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004515/0.4145, allocations: 2.713 MB / 497.2 MB, free: 6.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002441/0.4148, allocations: 41.7 kB / 497.3 MB, free: 6.348 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.416, allocations: 1.308 MB / 498.6 MB, free: 5.035 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005581/0.4166, allocations: 356.9 kB / 498.9 MB, free: 4.684 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004148/0.417, allocations: 234.4 kB / 499.2 MB, free: 4.449 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.4172, allocations: 353.9 kB / 499.5 MB, free: 4.098 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001359/0.4186, allocations: 474 kB / 500 MB, free: 3.629 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.42, allocations: 0.647 MB / 0.4889 GB, free: 2.926 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002688/0.4227, allocations: 1.129 MB / 0.49 GB, free: 1.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4227, allocations: 0 / 0.49 GB, free: 1.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004467/0.4272, allocations: 1.985 MB / 0.4919 GB, free: 15.67 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.4272, allocations: 8 kB / 0.4919 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/0.4274, allocations: 124 kB / 0.4921 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007376/0.4281, allocations: 264.9 kB / 0.4923 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008875/0.429, allocations: 195.7 kB / 0.4925 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/0.4404, allocations: 14.25 MB / 0.5064 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.4422, allocations: 95.95 kB / 0.5065 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.4424, allocations: 56 kB / 0.5066 GB, free: 15.26 MB / 446.1 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.0009596/0.4433, allocations: 425.6 kB / 0.507 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005705/0.4439, allocations: 393.5 kB / 0.5073 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005136/0.449, allocations: 2.207 MB / 0.5095 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.449, allocations: 11.98 kB / 0.5095 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.449, allocations: 8 kB / 0.5095 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.449, allocations: 3.984 kB / 0.5095 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/0.4513, allocations: 1.555 MB / 0.511 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001547/0.4514, allocations: 112 kB / 0.5111 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007235/0.4521, allocations: 131.8 kB / 0.5113 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006627/0.4528, allocations: 268.3 kB / 0.5115 GB, free: 9.996 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.4529, allocations: 47.97 kB / 0.5116 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/0.4635, allocations: 14.24 MB / 0.5255 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.4635, allocations: 0 / 0.5255 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005749/0.4692, allocations: 2.569 MB / 0.528 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009579/0.4702, allocations: 0.5063 MB / 0.5285 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002776/0.4705, allocations: 20 kB / 0.5285 GB, free: 7.105 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009624/0.4714, allocations: 79.89 kB / 0.5286 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003931/0.4718, allocations: 140.8 kB / 0.5287 GB, free: 6.891 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.4719, allocations: 51.98 kB / 0.5288 GB, free: 6.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002632/0.4746, allocations: 1.79 MB / 0.5305 GB, free: 5.043 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4746, allocations: 3.938 kB / 0.5305 GB, free: 5.039 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001753/0.4763, allocations: 0.6557 MB / 0.5311 GB, free: 4.383 MB / 462.1 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.007268/0.4836, allocations: 3.841 MB / 0.5349 GB, free: 456 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004408/0.488, allocations: 2.448 MB / 0.5373 GB, free: 13.84 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.488, allocations: 4 kB / 0.5373 GB, free: 13.84 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002838/0.4908, allocations: 1.898 MB / 0.5391 GB, free: 11.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002038/0.4929, allocations: 0.5246 MB / 0.5397 GB, free: 11.26 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03082/0.5237, allocations: 18.32 MB / 0.5576 GB, free: 8.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/0.525, allocations: 1.658 MB / 0.5592 GB, free: 6.789 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001216/0.5262, allocations: 391.4 kB / 0.5595 GB, free: 6.402 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.5276, allocations: 1.206 MB / 0.5607 GB, free: 5.191 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5276, allocations: 4 kB / 0.5607 GB, free: 5.188 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2958/0.8234, allocations: 67.29 MB / 0.6264 GB, free: 122.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.03/18.86, allocations: 20.69 kB / 0.6265 GB, free: 122.5 MB / 494.1 MB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.36845337599516] 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'] 19.037736645026598 19.047533293 18.704022318 Calling exit ...