Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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) 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(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001309, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 199.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.448/1.448, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 71.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2498, allocations: 50.54 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01545/0.2653, allocations: 14.2 MB / 423 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02537/0.2907, allocations: 20.34 MB / 443.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002239/0.293, allocations: 122.9 kB / 443.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003346/0.2964, allocations: 1.119 MB / 444.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007875/0.3043, allocations: 2.286 MB / 446.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00441/0.3088, allocations: 1.439 MB / 448.3 MB, free: 9.789 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.3194, allocations: 6.488 MB / 454.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008199/0.3202, allocations: 432.4 kB / 455.2 MB, free: 2.828 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.3218, allocations: 1.073 MB / 456.3 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.3232, allocations: 1.087 MB / 457.4 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002406/0.3235, allocations: 76 kB / 457.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004123/0.3276, allocations: 1.475 MB / 458.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004044/0.328, allocations: 329.6 kB / 459.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001523/0.3296, allocations: 1.316 MB / 460.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005574/0.3352, allocations: 3.714 MB / 464.3 MB, free: 9.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3352, allocations: 0 / 464.3 MB, free: 9.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3352, allocations: 0 / 464.3 MB, free: 9.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.537e-05/0.3353, allocations: 0 / 464.3 MB, free: 9.727 MB / 382.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.005774/0.3411, allocations: 3.681 MB / 468 MB, free: 5.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3411, allocations: 8.031 kB / 468 MB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.3413, allocations: 102.5 kB / 468.1 MB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004897/0.3418, allocations: 397.5 kB / 468.5 MB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003824/0.3456, allocations: 2.555 MB / 471 MB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.3457, allocations: 37 kB / 471.1 MB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.3458, allocations: 44 kB / 471.1 MB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.3474, allocations: 0.7577 MB / 471.9 MB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3474, allocations: 0 / 471.9 MB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.993e-05/0.3475, allocations: 23.98 kB / 471.9 MB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.3475, allocations: 23.94 kB / 471.9 MB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.3494, allocations: 0.8592 MB / 472.8 MB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005319/0.3547, allocations: 2.982 MB / 475.7 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.3566, allocations: 0.791 MB / 476.5 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/0.3582, allocations: 0.9487 MB / 477.5 MB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03327/0.3915, allocations: 30.7 MB / 0.4963 GB, free: 9.332 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.3928, allocations: 0.5996 MB / 0.4969 GB, free: 8.723 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.267e-06/0.3928, allocations: 3.938 kB / 0.4969 GB, free: 8.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01327/0.4061, allocations: 5.278 MB / 0.502 GB, free: 3.191 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.4062, allocations: 64.41 kB / 0.5021 GB, free: 3.117 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003897/0.4101, allocations: 2.692 MB / 0.5047 GB, free: 420 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001866/0.4103, allocations: 45.64 kB / 0.5048 GB, free: 368 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001301/0.4116, allocations: 1.315 MB / 0.506 GB, free: 15.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004114/0.412, allocations: 353 kB / 0.5064 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004402/0.4125, allocations: 234.4 kB / 0.5066 GB, free: 14.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.4127, allocations: 345.9 kB / 0.5069 GB, free: 14.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.414, allocations: 478 kB / 0.5074 GB, free: 13.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.4155, allocations: 0.6464 MB / 0.508 GB, free: 12.94 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.4182, allocations: 1.129 MB / 0.5091 GB, free: 11.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.4182, allocations: 4 kB / 0.5091 GB, free: 11.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004465/0.4227, allocations: 1.993 MB / 0.5111 GB, free: 9.672 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.4227, allocations: 4.531 kB / 0.5111 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/0.4229, allocations: 120 kB / 0.5112 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007633/0.4237, allocations: 264.4 kB / 0.5114 GB, free: 9.262 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009114/0.4246, allocations: 203.6 kB / 0.5116 GB, free: 9.062 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.4359, allocations: 14.24 MB / 0.5255 GB, free: 9.422 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.4374, allocations: 87.89 kB / 0.5256 GB, free: 9.336 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.4376, allocations: 60 kB / 0.5257 GB, free: 9.277 MB / 462.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.0008549/0.4384, allocations: 436.5 kB / 0.5261 GB, free: 8.844 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000489/0.4389, allocations: 389.6 kB / 0.5265 GB, free: 8.461 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005141/0.4441, allocations: 2.211 MB / 0.5286 GB, free: 6.168 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.727e-05/0.4441, allocations: 19.98 kB / 0.5286 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.4441, allocations: 8 kB / 0.5287 GB, free: 6.141 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.4441, allocations: 7.922 kB / 0.5287 GB, free: 6.133 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.4463, allocations: 1.535 MB / 0.5302 GB, free: 4.547 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001659/0.4465, allocations: 108 kB / 0.5303 GB, free: 4.441 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007429/0.4472, allocations: 135.8 kB / 0.5304 GB, free: 4.309 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006804/0.4479, allocations: 268.3 kB / 0.5306 GB, free: 4.016 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.448, allocations: 43.98 kB / 0.5307 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2009/0.6489, allocations: 14.23 MB / 0.5446 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6489, allocations: 0 / 0.5446 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005359/0.6543, allocations: 2.575 MB / 0.5471 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008596/0.6552, allocations: 0.5 MB / 0.5476 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003142/0.6555, allocations: 24.47 kB / 0.5476 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009302/0.6565, allocations: 84.73 kB / 0.5477 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003637/0.6568, allocations: 133.8 kB / 0.5478 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.32e-05/0.6569, allocations: 51.19 kB / 0.5479 GB, free: 118.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001976/0.6589, allocations: 1.771 MB / 0.5496 GB, free: 117.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6589, allocations: 0 / 0.5496 GB, free: 117.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001526/0.6605, allocations: 0.6598 MB / 0.5503 GB, free: 117.5 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.006025/0.6665, allocations: 3.842 MB / 0.554 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003697/0.6702, allocations: 2.515 MB / 0.5565 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.6703, allocations: 0 / 0.5565 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002119/0.6724, allocations: 1.962 MB / 0.5584 GB, free: 112.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/0.6752, allocations: 0.6295 MB / 0.559 GB, free: 112.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02528/0.7005, allocations: 18.24 MB / 0.5768 GB, free: 93.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007269/0.7012, allocations: 1.654 MB / 0.5784 GB, free: 92.18 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.7024, allocations: 391.3 kB / 0.5788 GB, free: 91.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008983/0.7033, allocations: 1.202 MB / 0.58 GB, free: 90.59 MB / 462.1 MB Notification: Performance of SimCode: time 9.61e-07/0.7033, allocations: 0 / 0.58 GB, free: 90.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1179/0.8212, allocations: 66.63 MB / 0.645 GB, free: 24.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.71/18.53, allocations: 11.56 kB / 0.645 GB, free: 24.09 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)