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.001033/0.001034, allocations: 101.5 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002348, allocations: 4 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0102/0.1238, allocations: 11.4 MB / 369.6 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2262/0.35, allocations: 17.53 MB / 387.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002829/0.3528, allocations: 60.66 kB / 387.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004156/0.357, allocations: 0.9055 MB / 388.1 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01242/0.3695, allocations: 2.066 MB / 390.1 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01003/0.3796, allocations: 1.192 MB / 391.3 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01465/0.3943, allocations: 6.126 MB / 397.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000877/0.3952, allocations: 397.3 kB / 397.9 MB, free: 396 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002822/0.398, allocations: 0.9239 MB / 398.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.4009, allocations: 0.9944 MB / 399.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003466/0.4012, allocations: 42.62 kB / 399.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006722/0.408, allocations: 1.434 MB / 401.2 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005995/0.4086, allocations: 273 kB / 401.5 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001755/0.4104, allocations: 0.6003 MB / 402.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004495/0.4149, allocations: 2.538 MB / 404.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.4149, allocations: 4 kB / 404.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4149, allocations: 0 / 404.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001058/0.415, allocations: 0 / 404.7 MB, free: 12.62 MB / 318.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.00582/0.4208, allocations: 3.162 MB / 407.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.4209, allocations: 10.5 kB / 407.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001637/0.4211, allocations: 92.55 kB / 407.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005513/0.4217, allocations: 387.1 kB / 408.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00466/0.4263, allocations: 2.364 MB / 410.7 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.4264, allocations: 36.95 kB / 410.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.4265, allocations: 51.91 kB / 410.7 MB, free: 7.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.428, allocations: 0.7889 MB / 411.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.428, allocations: 0 / 411.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-05/0.4281, allocations: 20 kB / 411.6 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.4281, allocations: 23.98 kB / 411.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.43, allocations: 0.9178 MB / 412.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005644/0.4357, allocations: 2.982 MB / 415.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.4375, allocations: 0.8468 MB / 416.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03141/0.469, allocations: 30.9 MB / 447.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.4702, allocations: 0.6192 MB / 447.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 4.839e-06/0.4702, allocations: 0 / 447.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01321/0.4834, allocations: 6.013 MB / 453.9 MB, free: 7.699 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.4835, allocations: 72.41 kB / 453.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003489/0.487, allocations: 2.657 MB / 456.6 MB, free: 4.945 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/0.4871, allocations: 41.7 kB / 456.6 MB, free: 4.898 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.4882, allocations: 1.299 MB / 457.9 MB, free: 3.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003432/0.4885, allocations: 339.1 kB / 458.3 MB, free: 3.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-05/0.4886, allocations: 16 kB / 458.3 MB, free: 3.242 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.4888, allocations: 349.9 kB / 458.6 MB, free: 2.895 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.4901, allocations: 0.5215 MB / 459.1 MB, free: 2.375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.4914, allocations: 0.7102 MB / 459.8 MB, free: 1.598 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.4926, allocations: 0.573 MB / 460.4 MB, free: 1.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.4927, allocations: 8 kB / 460.4 MB, free: 1.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004037/0.4967, allocations: 2.085 MB / 462.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.4968, allocations: 4 kB / 462.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001393/0.4969, allocations: 123.9 kB / 462.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000631/0.4975, allocations: 268.9 kB / 462.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009251/0.4985, allocations: 237 kB / 463.1 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009091/0.5076, allocations: 13.32 MB / 476.5 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001912/0.5095, allocations: 123.9 kB / 476.6 MB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.5097, allocations: 59.95 kB / 476.6 MB, free: 15.38 MB / 398.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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009873/0.5107, allocations: 425.6 kB / 477 MB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005081/0.5112, allocations: 363.6 kB / 477.4 MB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00536/0.5166, allocations: 2.359 MB / 479.8 MB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.5166, allocations: 8 kB / 479.8 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.5166, allocations: 4 kB / 479.8 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.5166, allocations: 7.984 kB / 479.8 MB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.5198, allocations: 1.539 MB / 481.3 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001977/0.52, allocations: 115.9 kB / 481.4 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008032/0.5208, allocations: 171.8 kB / 481.6 MB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007685/0.5216, allocations: 268.3 kB / 481.9 MB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.5217, allocations: 39.98 kB / 481.9 MB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01013/0.5319, allocations: 13.31 MB / 495.2 MB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5319, allocations: 0 / 495.2 MB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005774/0.5377, allocations: 2.727 MB / 497.9 MB, free: 8.473 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001479/0.5392, allocations: 492.4 kB / 498.4 MB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000353/0.5396, allocations: 19.95 kB / 498.4 MB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009612/0.5406, allocations: 115.9 kB / 498.6 MB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003363/0.5409, allocations: 140.8 kB / 498.7 MB, free: 7.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.541, allocations: 47.98 kB / 498.7 MB, free: 7.652 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00231/0.5433, allocations: 1.739 MB / 0.4887 GB, free: 5.906 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5433, allocations: 7.875 kB / 0.4888 GB, free: 5.898 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001835/0.5452, allocations: 0.6483 MB / 0.4894 GB, free: 5.25 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006266/0.5515, allocations: 3.966 MB / 0.4933 GB, free: 1.184 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.5555, allocations: 2.635 MB / 0.4958 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5555, allocations: 4.188 kB / 0.4958 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002436/0.5579, allocations: 2.011 MB / 0.4978 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.5606, allocations: 0.5802 MB / 0.4984 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04079/0.6014, allocations: 22.05 MB / 0.5199 GB, free: 3.781 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001138/0.6026, allocations: 1.724 MB / 0.5216 GB, free: 2.027 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001686/0.6043, allocations: 387.3 kB / 0.522 GB, free: 1.645 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/0.6055, allocations: 1.191 MB / 0.5231 GB, free: 464 kB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.6055, allocations: 0 / 0.5231 GB, free: 464 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3589/0.9644, allocations: 61 MB / 0.5827 GB, free: 103.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.9646, allocations: 197.4 kB / 0.5829 GB, free: 103.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.045/5.009, allocations: 3.375 kB / 0.5829 GB, free: 103.6 MB / 446.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/linux/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)