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.001353/0.001353, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001644/0.001644, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 67.84 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2602, allocations: 50.53 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01329/0.2735, allocations: 14.19 MB / 422.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02436/0.2979, allocations: 20.34 MB / 443.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002378/0.3003, allocations: 130.9 kB / 443.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003337/0.3037, allocations: 1.114 MB / 444.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008834/0.3126, allocations: 2.289 MB / 446.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005917/0.3186, allocations: 1.439 MB / 448.2 MB, free: 9.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.3291, allocations: 6.488 MB / 454.7 MB, free: 3.387 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000914/0.3301, allocations: 440.4 kB / 455.2 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.3318, allocations: 1.097 MB / 456.3 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001595/0.3334, allocations: 1.083 MB / 457.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000401/0.3338, allocations: 72 kB / 457.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004759/0.3386, allocations: 1.483 MB / 458.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000419/0.339, allocations: 321.8 kB / 459.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001537/0.3405, allocations: 1.32 MB / 460.5 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005583/0.3461, allocations: 3.689 MB / 464.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.3462, allocations: 4 kB / 464.2 MB, free: 9.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3462, allocations: 0 / 464.2 MB, free: 9.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000113/0.3463, allocations: 3.938 kB / 464.2 MB, free: 9.82 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.005951/0.3523, allocations: 3.553 MB / 467.8 MB, free: 6.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3523, allocations: 12.03 kB / 467.8 MB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.3525, allocations: 106.5 kB / 467.9 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005137/0.353, allocations: 375.4 kB / 468.3 MB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003861/0.3569, allocations: 2.517 MB / 470.8 MB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.3569, allocations: 33 kB / 470.8 MB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.3571, allocations: 55.89 kB / 470.9 MB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.3585, allocations: 0.7616 MB / 471.6 MB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3586, allocations: 0 / 471.6 MB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.099e-05/0.3586, allocations: 19.94 kB / 471.6 MB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.3587, allocations: 23.98 kB / 471.7 MB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.3603, allocations: 0.8514 MB / 472.5 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005152/0.3655, allocations: 2.974 MB / 475.5 MB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.3672, allocations: 0.791 MB / 476.3 MB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.3686, allocations: 0.9527 MB / 477.2 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03036/0.399, allocations: 30.69 MB / 0.496 GB, free: 9.609 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.4002, allocations: 0.5958 MB / 0.4966 GB, free: 9.004 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.306e-06/0.4002, allocations: 0 / 0.4966 GB, free: 9.004 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01185/0.4121, allocations: 5.221 MB / 0.5017 GB, free: 3.527 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.4122, allocations: 72.39 kB / 0.5018 GB, free: 3.445 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004198/0.4164, allocations: 2.692 MB / 0.5044 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.4165, allocations: 45.69 kB / 0.5044 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.4177, allocations: 1.299 MB / 0.5057 GB, free: 15.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000327/0.4181, allocations: 343 kB / 0.506 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004228/0.4185, allocations: 226.3 kB / 0.5063 GB, free: 14.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4186, allocations: 353.9 kB / 0.5066 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.4198, allocations: 470 kB / 0.507 GB, free: 14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.4212, allocations: 0.6542 MB / 0.5077 GB, free: 13.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.4236, allocations: 1.122 MB / 0.5088 GB, free: 12.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.4237, allocations: 0 / 0.5088 GB, free: 12.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004114/0.4278, allocations: 1.979 MB / 0.5107 GB, free: 10.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.4278, allocations: 8 kB / 0.5107 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/0.428, allocations: 120 kB / 0.5108 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006942/0.4287, allocations: 272.9 kB / 0.5111 GB, free: 9.621 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008851/0.4296, allocations: 195.7 kB / 0.5113 GB, free: 9.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00957/0.4392, allocations: 14.25 MB / 0.5252 GB, free: 9.781 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.4406, allocations: 91.95 kB / 0.5253 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/0.4408, allocations: 56 kB / 0.5253 GB, free: 9.637 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.0008721/0.4417, allocations: 433.5 kB / 0.5257 GB, free: 9.203 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005765/0.4423, allocations: 367.6 kB / 0.5261 GB, free: 8.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004921/0.4472, allocations: 2.218 MB / 0.5283 GB, free: 6.539 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.4472, allocations: 8 kB / 0.5283 GB, free: 6.531 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.4472, allocations: 4 kB / 0.5283 GB, free: 6.527 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.4472, allocations: 3.984 kB / 0.5283 GB, free: 6.523 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.4494, allocations: 1.543 MB / 0.5298 GB, free: 4.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001527/0.4496, allocations: 116 kB / 0.5299 GB, free: 4.816 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007177/0.4503, allocations: 131.8 kB / 0.53 GB, free: 4.688 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006677/0.451, allocations: 272.3 kB / 0.5303 GB, free: 4.391 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.4511, allocations: 39.98 kB / 0.5303 GB, free: 4.352 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2009/0.652, allocations: 14.24 MB / 0.5442 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6521, allocations: 4.031 kB / 0.5442 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005312/0.6574, allocations: 2.541 MB / 0.5467 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007777/0.6582, allocations: 494.9 kB / 0.5472 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003153/0.6585, allocations: 16.59 kB / 0.5472 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009096/0.6594, allocations: 86.84 kB / 0.5473 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/0.6598, allocations: 152.9 kB / 0.5474 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.481e-05/0.6599, allocations: 43.52 kB / 0.5475 GB, free: 118.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.6617, allocations: 1.769 MB / 0.5492 GB, free: 118.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6618, allocations: 0 / 0.5492 GB, free: 118.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001344/0.6631, allocations: 0.6555 MB / 0.5498 GB, free: 118 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.005353/0.6685, allocations: 3.809 MB / 0.5536 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003254/0.6717, allocations: 2.519 MB / 0.556 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.6718, allocations: 0 / 0.556 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.6736, allocations: 1.953 MB / 0.5579 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/0.6757, allocations: 0.6353 MB / 0.5585 GB, free: 112.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02205/0.6978, allocations: 18.14 MB / 0.5763 GB, free: 94.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000902/0.6987, allocations: 1.654 MB / 0.5779 GB, free: 92.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001186/0.6999, allocations: 403.2 kB / 0.5783 GB, free: 92.49 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009156/0.7009, allocations: 1.194 MB / 0.5794 GB, free: 91.3 MB / 462.1 MB Notification: Performance of SimCode: time 2.295e-06/0.7009, allocations: 0 / 0.5794 GB, free: 91.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/0.811, allocations: 67.86 MB / 0.6457 GB, free: 23.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.7/18.51, allocations: 2.562 kB / 0.6457 GB, free: 23.56 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)