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.001078/0.001078, allocations: 117.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 212.5 kB / 18.74 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2809, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01271/0.2937, allocations: 14.19 MB / 422.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02361/0.3173, allocations: 20.34 MB / 443.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.3196, allocations: 126.9 kB / 443.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002954/0.3226, allocations: 1.114 MB / 444.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007065/0.3297, allocations: 2.293 MB / 446.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004622/0.3344, allocations: 1.443 MB / 448.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009429/0.3438, allocations: 6.492 MB / 454.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007059/0.3446, allocations: 432.4 kB / 455.2 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.3461, allocations: 1.097 MB / 456.3 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.3474, allocations: 1.087 MB / 457.3 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001797/0.3476, allocations: 72 kB / 457.4 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004027/0.3516, allocations: 1.479 MB / 458.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004055/0.352, allocations: 325.7 kB / 459.2 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001431/0.3535, allocations: 1.32 MB / 460.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005418/0.3589, allocations: 3.689 MB / 464.2 MB, free: 9.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3589, allocations: 8 kB / 464.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.359, allocations: 0 / 464.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.024e-05/0.359, allocations: 0 / 464.2 MB, free: 9.793 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.005704/0.3648, allocations: 3.553 MB / 467.8 MB, free: 6.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3648, allocations: 8.031 kB / 467.8 MB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.3649, allocations: 98.5 kB / 467.9 MB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004155/0.3654, allocations: 375.4 kB / 468.2 MB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003857/0.3692, allocations: 2.517 MB / 470.8 MB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.3693, allocations: 48.92 kB / 470.8 MB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.3694, allocations: 55.84 kB / 470.9 MB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.3709, allocations: 0.7499 MB / 471.6 MB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3709, allocations: 0 / 471.6 MB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.497e-05/0.371, allocations: 20 kB / 471.6 MB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.371, allocations: 23.98 kB / 471.7 MB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.3728, allocations: 0.8553 MB / 472.5 MB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004979/0.3778, allocations: 2.978 MB / 475.5 MB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.3795, allocations: 0.7871 MB / 476.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.3809, allocations: 0.9565 MB / 477.2 MB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02968/0.4106, allocations: 30.69 MB / 0.496 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.4118, allocations: 0.5919 MB / 0.4966 GB, free: 8.98 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.236e-06/0.4118, allocations: 0 / 0.4966 GB, free: 8.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01219/0.424, allocations: 5.221 MB / 0.5017 GB, free: 3.504 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.4241, allocations: 68.39 kB / 0.5018 GB, free: 3.426 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002996/0.4271, allocations: 2.696 MB / 0.5044 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.4273, allocations: 41.7 kB / 0.5044 GB, free: 0.668 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001037/0.4283, allocations: 1.311 MB / 0.5057 GB, free: 15.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.4286, allocations: 335.1 kB / 0.506 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000346/0.429, allocations: 234.3 kB / 0.5063 GB, free: 14.78 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4291, allocations: 341.9 kB / 0.5066 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4303, allocations: 474 kB / 0.507 GB, free: 13.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/0.4317, allocations: 0.6504 MB / 0.5077 GB, free: 13.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002545/0.4342, allocations: 1.133 MB / 0.5088 GB, free: 12.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4343, allocations: 0 / 0.5088 GB, free: 12.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004015/0.4383, allocations: 1.972 MB / 0.5107 GB, free: 10.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.4383, allocations: 11.98 kB / 0.5107 GB, free: 10.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/0.4385, allocations: 124 kB / 0.5108 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006709/0.4391, allocations: 260.5 kB / 0.5111 GB, free: 9.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008855/0.44, allocations: 203.6 kB / 0.5113 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008819/0.4489, allocations: 14.24 MB / 0.5252 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.4503, allocations: 91.95 kB / 0.5253 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.4504, allocations: 60 kB / 0.5253 GB, free: 9.613 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.0007747/0.4512, allocations: 436.4 kB / 0.5258 GB, free: 9.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003909/0.4516, allocations: 367.6 kB / 0.5261 GB, free: 8.816 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004661/0.4563, allocations: 2.21 MB / 0.5283 GB, free: 6.523 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.4563, allocations: 8 kB / 0.5283 GB, free: 6.516 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.4563, allocations: 4 kB / 0.5283 GB, free: 6.512 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.4564, allocations: 3.984 kB / 0.5283 GB, free: 6.508 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.4583, allocations: 1.543 MB / 0.5298 GB, free: 4.914 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001394/0.4585, allocations: 120 kB / 0.5299 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007229/0.4592, allocations: 135.8 kB / 0.53 GB, free: 4.664 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006722/0.4599, allocations: 264.3 kB / 0.5303 GB, free: 4.375 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.46, allocations: 39.98 kB / 0.5303 GB, free: 4.336 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1988/0.6588, allocations: 14.24 MB / 0.5442 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.6588, allocations: 0.5 kB / 0.5442 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005479/0.6643, allocations: 2.547 MB / 0.5467 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.6654, allocations: 0.4904 MB / 0.5472 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002943/0.6657, allocations: 24.03 kB / 0.5472 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009363/0.6666, allocations: 81.06 kB / 0.5473 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/0.667, allocations: 141.2 kB / 0.5474 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.319e-05/0.6671, allocations: 53.31 kB / 0.5475 GB, free: 118.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00194/0.669, allocations: 1.766 MB / 0.5492 GB, free: 118.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6691, allocations: 0 / 0.5492 GB, free: 118.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001487/0.6705, allocations: 0.6538 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.005911/0.6765, allocations: 3.816 MB / 0.5536 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003708/0.6802, allocations: 2.516 MB / 0.556 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6802, allocations: 7.781 kB / 0.556 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00216/0.6824, allocations: 1.952 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.002478/0.6849, allocations: 0.6223 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.02329/0.7082, allocations: 18.13 MB / 0.5762 GB, free: 94.55 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007387/0.709, allocations: 1.662 MB / 0.5779 GB, free: 92.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001169/0.7102, allocations: 395.3 kB / 0.5782 GB, free: 92.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008466/0.711, allocations: 1.191 MB / 0.5794 GB, free: 91.28 MB / 462.1 MB Notification: Performance of SimCode: time 1.333e-06/0.711, allocations: 0 / 0.5794 GB, free: 91.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3058/1.017, allocations: 67.87 MB / 0.6457 GB, free: 23.54 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.32/18.34, allocations: 11.94 kB / 0.6457 GB, free: 23.52 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)