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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 102.6 kB / 17.72 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 187.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.258/1.258, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 55.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.0835, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1878/0.2714, allocations: 13.52 MB / 388.2 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0219/0.2933, allocations: 19.37 MB / 407.5 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003076/0.2964, allocations: 126.5 kB / 407.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003377/0.2999, allocations: 1.088 MB / 408.7 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008323/0.3082, allocations: 2.257 MB / 411 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005486/0.3137, allocations: 1.39 MB / 412.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01272/0.3264, allocations: 6.275 MB / 418.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001458/0.328, allocations: 430.2 kB / 419.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.3304, allocations: 1.005 MB / 420.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001897/0.3323, allocations: 1.059 MB / 421.1 MB, free: 292 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003174/0.3326, allocations: 75.59 kB / 421.2 MB, free: 292 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004985/0.3376, allocations: 1.159 MB / 422.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004824/0.3381, allocations: 320.6 kB / 422.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001889/0.34, allocations: 1.333 MB / 424 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005566/0.3456, allocations: 3.716 MB / 427.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3456, allocations: 4 kB / 427.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3456, allocations: 0 / 427.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.052e-05/0.3457, allocations: 0 / 427.7 MB, free: 10.69 MB / 350.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.005118/0.3508, allocations: 3.584 MB / 431.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.3509, allocations: 16.02 kB / 431.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.351, allocations: 91.36 kB / 431.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.3514, allocations: 379.4 kB / 431.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.3546, allocations: 2.54 MB / 434.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.3547, allocations: 41 kB / 434.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.3548, allocations: 51.89 kB / 434.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.3561, allocations: 0.7584 MB / 435.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.3562, allocations: 0 / 435.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.896e-05/0.3562, allocations: 16 kB / 435.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.3563, allocations: 27.98 kB / 435.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.3579, allocations: 0.8591 MB / 436.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004526/0.3624, allocations: 2.975 MB / 439.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.364, allocations: 0.7919 MB / 439.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.3654, allocations: 0.9564 MB / 440.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02744/0.3928, allocations: 30.12 MB / 470.9 MB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/0.394, allocations: 0.5957 MB / 471.5 MB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 4.018e-06/0.394, allocations: 0 / 471.5 MB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01145/0.4055, allocations: 5.244 MB / 476.8 MB, free: 5.023 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.4056, allocations: 68.34 kB / 476.8 MB, free: 4.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003123/0.4087, allocations: 2.717 MB / 479.6 MB, free: 2.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.782e-05/0.4088, allocations: 45.7 kB / 479.6 MB, free: 2.164 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.4098, allocations: 1.296 MB / 480.9 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002531/0.4101, allocations: 335.1 kB / 481.2 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003338/0.4104, allocations: 238.3 kB / 481.5 MB, free: 300 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.4106, allocations: 341.9 kB / 481.8 MB, free: 15.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.4117, allocations: 478 kB / 482.3 MB, free: 15.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.4129, allocations: 0.6431 MB / 482.9 MB, free: 14.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002323/0.4153, allocations: 1.133 MB / 484 MB, free: 13.58 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4153, allocations: 0 / 484 MB, free: 13.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003733/0.419, allocations: 1.985 MB / 486 MB, free: 11.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4191, allocations: 11.94 kB / 486 MB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/0.4192, allocations: 120 kB / 486.1 MB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006569/0.4199, allocations: 264.5 kB / 486.4 MB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008443/0.4208, allocations: 203.6 kB / 486.6 MB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008905/0.4297, allocations: 14.24 MB / 0.4891 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/0.4313, allocations: 88.84 kB / 0.4892 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.4315, allocations: 64 kB / 0.4893 GB, free: 11.12 MB / 430.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.0009329/0.4324, allocations: 425.6 kB / 0.4897 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005471/0.433, allocations: 371.5 kB / 0.49 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00458/0.4376, allocations: 2.226 MB / 0.4922 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.4376, allocations: 8 kB / 0.4922 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.4376, allocations: 4 kB / 0.4922 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.4376, allocations: 3.984 kB / 0.4922 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.4395, allocations: 1.559 MB / 0.4937 GB, free: 6.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001513/0.4397, allocations: 120 kB / 0.4938 GB, free: 6.277 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006905/0.4404, allocations: 135.8 kB / 0.494 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006358/0.4411, allocations: 260.3 kB / 0.4942 GB, free: 5.859 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.293e-05/0.4412, allocations: 43.98 kB / 0.4943 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008793/0.45, allocations: 14.24 MB / 0.5082 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.45, allocations: 0 / 0.5082 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/0.4553, allocations: 2.551 MB / 0.5107 GB, free: 3.535 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008764/0.4562, allocations: 496.5 kB / 0.5111 GB, free: 3.027 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000311/0.4565, allocations: 20 kB / 0.5111 GB, free: 3.008 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009142/0.4575, allocations: 83.89 kB / 0.5112 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/0.4578, allocations: 140.8 kB / 0.5114 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.522e-05/0.4579, allocations: 43.98 kB / 0.5114 GB, free: 2.746 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002236/0.4601, allocations: 1.782 MB / 0.5131 GB, free: 0.957 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4602, allocations: 0 / 0.5131 GB, free: 0.957 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001496/0.4617, allocations: 0.6639 MB / 0.5138 GB, free: 300 kB / 446.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.006163/0.4678, allocations: 3.827 MB / 0.5175 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003847/0.4717, allocations: 2.518 MB / 0.52 GB, free: 9.695 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4717, allocations: 0 / 0.52 GB, free: 9.695 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002341/0.4741, allocations: 1.948 MB / 0.5219 GB, free: 7.594 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.476, allocations: 0.5249 MB / 0.5224 GB, free: 7.062 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02694/0.503, allocations: 18.23 MB / 0.5402 GB, free: 4.391 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.5042, allocations: 1.666 MB / 0.5418 GB, free: 2.695 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001238/0.5054, allocations: 395.4 kB / 0.5422 GB, free: 2.305 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/0.5067, allocations: 1.198 MB / 0.5434 GB, free: 1.105 MB / 478.1 MB Notification: Performance of SimCode: time 1.372e-06/0.5067, allocations: 0 / 0.5434 GB, free: 1.105 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2927/0.7994, allocations: 68.17 MB / 0.61 GB, free: 109.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.94/17.74, allocations: 11.94 kB / 0.61 GB, free: 109.8 MB / 478.1 MB (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 --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)